1
0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-06-25 22:18:30 +02: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:
Misa 2021-08-18 09:52:38 -07:00
parent 0fd4f21710
commit a1df4c1383
3 changed files with 2 additions and 7 deletions

View File

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

View File

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

View File

@ -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))