mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-29 17:38:16 +03:00
Revert "Fix loading levels that are... uh, just levels."
This reverts commit ea74b93f38.
This is reverted for being a bit of a hack in my opinion.
This commit is contained in:
@@ -241,7 +241,7 @@ bool FILESYSTEM_isMounted(const char* filename)
|
||||
return PHYSFS_getMountPoint(filename) != NULL;
|
||||
}
|
||||
|
||||
bool FILESYSTEM_exists(const char *fname)
|
||||
static bool FILESYSTEM_exists(const char *fname)
|
||||
{
|
||||
return PHYSFS_exists(fname);
|
||||
}
|
||||
|
||||
@@ -17,7 +17,6 @@ char *FILESYSTEM_getUserLevelDirectory(void);
|
||||
|
||||
bool FILESYSTEM_isFile(const char* filename);
|
||||
bool FILESYSTEM_isMounted(const char* filename);
|
||||
bool FILESYSTEM_exists(const char *filename);
|
||||
|
||||
void FILESYSTEM_loadZip(const char* filename);
|
||||
bool FILESYSTEM_mountAssets(const char *path);
|
||||
|
||||
@@ -1770,11 +1770,7 @@ bool editorclass::load(std::string& _path)
|
||||
}
|
||||
else
|
||||
{
|
||||
/* "Sometimes a level is just a level." */
|
||||
if (!FILESYSTEM_exists(_path.c_str()))
|
||||
{
|
||||
MAYBE_FAIL(FILESYSTEM_mountAssets(_path.c_str()));
|
||||
}
|
||||
MAYBE_FAIL(FILESYSTEM_mountAssets(_path.c_str()));
|
||||
}
|
||||
|
||||
if (!FILESYSTEM_loadTiXml2Document(_path.c_str(), doc))
|
||||
|
||||
Reference in New Issue
Block a user