1
0
Fork 0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-12-22 17:49:43 +01:00

Remove superfluous message if settings.vvv/unlock.vvv don't exist

If settings.vvv doesn't exist, loadsettings() calls savesettings(), but
savesettings() already prints a message if settings.vvv doesn't exist.
So then the output would look like

    No settings.vvv found. Creating new file
    No settings.vvv found

Which is clearly redundant.

The same thing happens with unlock.vvv, but in that case the following
prints instead

    No unlock.vvv found. Creating new file
    No Stats found. Assuming a new player
This commit is contained in:
Misa 2021-03-23 18:35:38 -07:00 committed by Misa Elizabeth Kai
parent 73535b4342
commit cbc84edb0e

View file

@ -4005,8 +4005,6 @@ void Game::loadstats(ScreenSettings* screen_settings)
// Save unlock.vvv only. Maybe we have a settings.vvv laying around too,
// and we don't want to overwrite that!
savestats(screen_settings);
vlog_info("No Stats found. Assuming a new player");
}
tinyxml2::XMLHandle hDoc(&doc);
@ -4550,7 +4548,7 @@ void Game::loadsettings(ScreenSettings* screen_settings)
if (!FILESYSTEM_loadTiXml2Document("saves/settings.vvv", doc))
{
savesettings(screen_settings);
vlog_info("No settings.vvv found");
return;
}
tinyxml2::XMLHandle hDoc(&doc);