Quellcode durchsuchen

Fix can't open files

Daniele Bartolini vor 12 Jahren
Ursprung
Commit
2c2571f922
1 geänderte Dateien mit 1 neuen und 3 gelöschten Zeilen
  1. 1 3
      src/core/filesystem/Filesystem.cpp

+ 1 - 3
src/core/filesystem/Filesystem.cpp

@@ -188,12 +188,10 @@ const char* Filesystem::os_path(const char* relative_path)
 //-----------------------------------------------------------------------------
 //-----------------------------------------------------------------------------
 DiskFile* Filesystem::open(const char* relative_path, FileOpenMode mode)
 DiskFile* Filesystem::open(const char* relative_path, FileOpenMode mode)
 {
 {
-	FilesystemEntry info;
-
 	CE_ASSERT(exists(relative_path), "File does not exist: %s", relative_path);
 	CE_ASSERT(exists(relative_path), "File does not exist: %s", relative_path);
 	CE_ASSERT(is_file(relative_path), "File is not a regular file: %s", relative_path);
 	CE_ASSERT(is_file(relative_path), "File is not a regular file: %s", relative_path);
 
 
-	return CE_NEW(m_allocator, DiskFile)(mode, info.os_path);
+	return CE_NEW(m_allocator, DiskFile)(mode, os_path(relative_path));
 }
 }
 
 
 //-----------------------------------------------------------------------------
 //-----------------------------------------------------------------------------