From cbc84edb0ef718982bd03347cbdab612e91bc470 Mon Sep 17 00:00:00 2001 From: Misa Date: Tue, 23 Mar 2021 18:35:38 -0700 Subject: [PATCH] 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 --- desktop_version/src/Game.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/desktop_version/src/Game.cpp b/desktop_version/src/Game.cpp index c0f21819..8e9d7eb6 100644 --- a/desktop_version/src/Game.cpp +++ b/desktop_version/src/Game.cpp @@ -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);