1
0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-06-26 06:28:30 +02: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:
Misa 2023-05-15 18:12:28 -07:00
parent 0f45e0c52e
commit ec587fc37e

View File

@ -258,6 +258,10 @@ static void levelMetaDataCallback(const char* filename)
{
cl.ListOfMetaData.push_back(temp);
}
else
{
vlog_warn("Level %s not found :(", filename_.c_str());
}
}
void customlevelclass::getDirectoryData(void)
@ -290,7 +294,6 @@ bool customlevelclass::getLevelMetaDataAndPlaytestArgs(const std::string& _path,
if (uMem == NULL)
{
vlog_warn("Level %s not found :(", _path.c_str());
return false;
}