mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2025-02-01 21:55:01 +01: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:
parent
0f45e0c52e
commit
ec587fc37e
1 changed files with 4 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue