|
@@ -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));
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
//-----------------------------------------------------------------------------
|
|
//-----------------------------------------------------------------------------
|