mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2024-12-22 17:49:43 +01: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:
parent
0fd4f21710
commit
a1df4c1383
3 changed files with 2 additions and 7 deletions
|
@ -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))
|
||||
|
|
Loading…
Reference in a new issue