Bladeren bron

Fix can't open files

Daniele Bartolini 12 jaren geleden
bovenliggende
commit
2c2571f922
1 gewijzigde bestanden met toevoegingen van 1 en 3 verwijderingen
  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)
 {
-	FilesystemEntry info;
-
 	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);
 
-	return CE_NEW(m_allocator, DiskFile)(mode, info.os_path);
+	return CE_NEW(m_allocator, DiskFile)(mode, os_path(relative_path));
 }
 
 //-----------------------------------------------------------------------------