@ -870,7 +870,7 @@ static void StartScenario()
if ( _file_to_saveload . mode = = SL_INVALID ) {
DEBUG ( sl , 0 , " Savegame is obsolete or invalid format: '%s' " , _file_to_saveload . name ) ;
SetDParamStr ( 0 , GetSaveLoadErrorString ( ) ) ;
ShowErrorMessage ( STR_JUST_RAW_STRING , INVALID_STRING_ID , 0 , 0 ) ;
ShowErrorMessage ( STR_JUST_RAW_STRING , INVALID_STRING_ID , WL_ERROR ) ;
_game_mode = GM_MENU ;
return ;
}
@ -886,7 +886,7 @@ static void StartScenario()
if ( SaveOrLoad ( _file_to_saveload . name , _file_to_saveload . mode , SCENARIO_DIR ) ! = SL_OK ) {
LoadIntroGame ( ) ;
SetDParamStr ( 0 , GetSaveLoadErrorString ( ) ) ;
ShowErrorMessage ( STR_JUST_RAW_STRING , INVALID_STRING_ID , 0 , 0 ) ;
ShowErrorMessage ( STR_JUST_RAW_STRING , INVALID_STRING_ID , WL_ERROR ) ;
}
_settings_game . difficulty = _settings_newgame . difficulty ;
@ -1002,7 +1002,7 @@ void SwitchToMode(SwitchMode new_mode)
if ( ! SafeSaveOrLoad ( _file_to_saveload . name , _file_to_saveload . mode , GM_NORMAL , NO_DIRECTORY ) ) {
LoadIntroGame ( ) ;
SetDParamStr ( 0 , GetSaveLoadErrorString ( ) ) ;
ShowErrorMessage ( STR_JUST_RAW_STRING , INVALID_STRING_ID , 0 , 0 ) ;
ShowErrorMessage ( STR_JUST_RAW_STRING , INVALID_STRING_ID , WL_ERROR ) ;
} else {
if ( _saveload_mode = = SLD_LOAD_SCENARIO ) {
StartupEngines ( ) ;
@ -1047,7 +1047,7 @@ void SwitchToMode(SwitchMode new_mode)
DoCommandP ( 0 , PM_PAUSED_SAVELOAD , 0 , CMD_PAUSE ) ;
} else {
SetDParamStr ( 0 , GetSaveLoadErrorString ( ) ) ;
ShowErrorMessage ( STR_JUST_RAW_STRING , INVALID_STRING_ID , 0 , 0 ) ;
ShowErrorMessage ( STR_JUST_RAW_STRING , INVALID_STRING_ID , WL_ERROR ) ;
}
break ;
}
@ -1055,7 +1055,7 @@ void SwitchToMode(SwitchMode new_mode)
case SM_MENU : // Switch to game intro menu
LoadIntroGame ( ) ;
if ( BaseSounds : : ini_set = = NULL & & BaseSounds : : GetUsedSet ( ) - > fallback ) {
ShowErrorMessage ( STR_WARNING_FALLBACK_SOUNDSET , INVALID_STRING_ID , 0 , 0 , true ) ;
ShowErrorMessage ( STR_WARNING_FALLBACK_SOUNDSET , INVALID_STRING_ID , WL_CRITICAL ) ;
BaseSounds : : ini_set = strdup ( BaseSounds : : GetUsedSet ( ) - > name ) ;
}
break ;
@ -1064,7 +1064,7 @@ void SwitchToMode(SwitchMode new_mode)
/* Make network saved games on pause compatible to singleplayer */
if ( SaveOrLoad ( _file_to_saveload . name , SL_SAVE , NO_DIRECTORY ) ! = SL_OK ) {
SetDParamStr ( 0 , GetSaveLoadErrorString ( ) ) ;
ShowErrorMessage ( STR_JUST_RAW_STRING , INVALID_STRING_ID , 0 , 0 ) ;
ShowErrorMessage ( STR_JUST_RAW_STRING , INVALID_STRING_ID , WL_ERROR ) ;
} else {
DeleteWindowById ( WC_SAVELOAD , 0 ) ;
}
@ -1081,7 +1081,7 @@ void SwitchToMode(SwitchMode new_mode)
}
if ( _switch_mode_errorstr ! = INVALID_STRING_ID ) {
ShowErrorMessage ( _switch_mode_errorstr , INVALID_STRING_ID , 0 , 0 , true ) ;
ShowErrorMessage ( _switch_mode_errorstr , INVALID_STRING_ID , WL_CRITICAL ) ;
}
}
@ -1239,7 +1239,7 @@ static void DoAutosave()
DEBUG ( sl , 2 , " Autosaving to '%s' " , buf ) ;
if ( SaveOrLoad ( buf , SL_SAVE , AUTOSAVE_DIR ) ! = SL_OK ) {
ShowErrorMessage ( STR_ERROR_AUTOSAVE_FAILED , INVALID_STRING_ID , 0 , 0 ) ;
ShowErrorMessage ( STR_ERROR_AUTOSAVE_FAILED , INVALID_STRING_ID , WL_ERROR ) ;
}
}