mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2024-12-23 01:59: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:
parent
73535b4342
commit
cbc84edb0e
1 changed files with 1 additions and 3 deletions
|
@ -4005,8 +4005,6 @@ void Game::loadstats(ScreenSettings* screen_settings)
|
||||||
// Save unlock.vvv only. Maybe we have a settings.vvv laying around too,
|
// Save unlock.vvv only. Maybe we have a settings.vvv laying around too,
|
||||||
// and we don't want to overwrite that!
|
// and we don't want to overwrite that!
|
||||||
savestats(screen_settings);
|
savestats(screen_settings);
|
||||||
|
|
||||||
vlog_info("No Stats found. Assuming a new player");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
tinyxml2::XMLHandle hDoc(&doc);
|
tinyxml2::XMLHandle hDoc(&doc);
|
||||||
|
@ -4550,7 +4548,7 @@ void Game::loadsettings(ScreenSettings* screen_settings)
|
||||||
if (!FILESYSTEM_loadTiXml2Document("saves/settings.vvv", doc))
|
if (!FILESYSTEM_loadTiXml2Document("saves/settings.vvv", doc))
|
||||||
{
|
{
|
||||||
savesettings(screen_settings);
|
savesettings(screen_settings);
|
||||||
vlog_info("No settings.vvv found");
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
tinyxml2::XMLHandle hDoc(&doc);
|
tinyxml2::XMLHandle hDoc(&doc);
|
||||||
|
|
Loading…
Reference in a new issue