mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-29 17:38:16 +03:00
Remove bogus warning if CLI playtesting zip level
If you used command-line playtesting to load a level in a zip, the game would print a warning saying the level wasn't found. This is because the warning is printed when it tries to load a level before it loads zips, inside the metadata load function itself. To fix this, just move the responsibility for printing the error outside the function, and put it on the caller.
This commit is contained in:
@@ -258,6 +258,10 @@ static void levelMetaDataCallback(const char* filename)
|
|||||||
{
|
{
|
||||||
cl.ListOfMetaData.push_back(temp);
|
cl.ListOfMetaData.push_back(temp);
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
vlog_warn("Level %s not found :(", filename_.c_str());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void customlevelclass::getDirectoryData(void)
|
void customlevelclass::getDirectoryData(void)
|
||||||
@@ -290,7 +294,6 @@ bool customlevelclass::getLevelMetaDataAndPlaytestArgs(const std::string& _path,
|
|||||||
|
|
||||||
if (uMem == NULL)
|
if (uMem == NULL)
|
||||||
{
|
{
|
||||||
vlog_warn("Level %s not found :(", _path.c_str());
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user