diff --git a/Bigfoot/Sources/System/File/MemoryMappedFile.cpp b/Bigfoot/Sources/System/File/MemoryMappedFile.cpp index a4e4c9b..8922640 100644 --- a/Bigfoot/Sources/System/File/MemoryMappedFile.cpp +++ b/Bigfoot/Sources/System/File/MemoryMappedFile.cpp @@ -145,7 +145,7 @@ WritableMemoryMappedFile::WritableMemoryMappedFile(const File& p_file, const std m_data = static_cast(MapViewOfFile(m_mappingHandle, FILE_MAP_WRITE, 0, 0, 0)); CRITICAL_ASSERT(SystemAssertHandler, m_data != nullptr, "Failed to map the file {}", path); #elif defined BIGFOOT_LINUX - m_fileDescriptor = open(path.data(), O_RDWR | O_CREAT | O_TRUNC, S_IRUSR | S_IWUSR); + m_fileDescriptor = open(path.data(), O_RDWR | O_CREAT, S_IRUSR | S_IWUSR); CRITICAL_ASSERT(SystemAssertHandler, m_fileDescriptor != -1, "Failed to create file {}", path); [[maybe_unused]]