GameState::saveGame and GameState::loadGame directly present success and error messages through TheInGameUI and MessageBoxOk.
Save and load functions should return result codes without presenting UI. GUI callers can translate the returned result into the existing user-facing messages.
This allows save/load to be used by non-interactive callers without depending on client UI.
GameState::saveGame and GameState::loadGame directly present success and error messages through TheInGameUI and MessageBoxOk.
Save and load functions should return result codes without presenting UI. GUI callers can translate the returned result into the existing user-facing messages.
This allows save/load to be used by non-interactive callers without depending on client UI.