mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-27 00:34:46 +01:00
Explicitly pass formatter arguments to ShowError and family
This commit is contained in:
@@ -589,7 +589,7 @@ static void window_loadsave_textinput(rct_window* w, rct_widgetindex widgetIndex
|
||||
case WIDX_NEW_FOLDER:
|
||||
if (!filename_valid_characters(text))
|
||||
{
|
||||
context_show_error(STR_ERROR_INVALID_CHARACTERS, STR_NONE);
|
||||
context_show_error(STR_ERROR_INVALID_CHARACTERS, STR_NONE, {});
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -598,7 +598,7 @@ static void window_loadsave_textinput(rct_window* w, rct_widgetindex widgetIndex
|
||||
|
||||
if (!platform_ensure_directory_exists(path))
|
||||
{
|
||||
context_show_error(STR_UNABLE_TO_CREATE_FOLDER, STR_NONE);
|
||||
context_show_error(STR_UNABLE_TO_CREATE_FOLDER, STR_NONE, {});
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -998,7 +998,7 @@ static void window_loadsave_select(rct_window* w, const char* path)
|
||||
{
|
||||
if (!is_valid_path(path))
|
||||
{
|
||||
context_show_error(STR_ERROR_INVALID_CHARACTERS, STR_NONE);
|
||||
context_show_error(STR_ERROR_INVALID_CHARACTERS, STR_NONE, {});
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -1029,7 +1029,7 @@ static void window_loadsave_select(rct_window* w, const char* path)
|
||||
}
|
||||
else
|
||||
{
|
||||
context_show_error(STR_SAVE_GAME, STR_GAME_SAVE_FAILED);
|
||||
context_show_error(STR_SAVE_GAME, STR_GAME_SAVE_FAILED, {});
|
||||
window_loadsave_invoke_callback(MODAL_RESULT_FAIL, pathBuffer);
|
||||
}
|
||||
break;
|
||||
@@ -1045,7 +1045,7 @@ static void window_loadsave_select(rct_window* w, const char* path)
|
||||
else
|
||||
{
|
||||
// Not the best message...
|
||||
context_show_error(STR_LOAD_LANDSCAPE, STR_FAILED_TO_LOAD_FILE_CONTAINS_INVALID_DATA);
|
||||
context_show_error(STR_LOAD_LANDSCAPE, STR_FAILED_TO_LOAD_FILE_CONTAINS_INVALID_DATA, {});
|
||||
window_loadsave_invoke_callback(MODAL_RESULT_FAIL, pathBuffer);
|
||||
}
|
||||
break;
|
||||
@@ -1062,7 +1062,7 @@ static void window_loadsave_select(rct_window* w, const char* path)
|
||||
}
|
||||
else
|
||||
{
|
||||
context_show_error(STR_SAVE_LANDSCAPE, STR_LANDSCAPE_SAVE_FAILED);
|
||||
context_show_error(STR_SAVE_LANDSCAPE, STR_LANDSCAPE_SAVE_FAILED, {});
|
||||
window_loadsave_invoke_callback(MODAL_RESULT_FAIL, pathBuffer);
|
||||
}
|
||||
break;
|
||||
@@ -1085,7 +1085,7 @@ static void window_loadsave_select(rct_window* w, const char* path)
|
||||
}
|
||||
else
|
||||
{
|
||||
context_show_error(STR_FILE_DIALOG_TITLE_SAVE_SCENARIO, STR_SCENARIO_SAVE_FAILED);
|
||||
context_show_error(STR_FILE_DIALOG_TITLE_SAVE_SCENARIO, STR_SCENARIO_SAVE_FAILED, {});
|
||||
gS6Info.editor_step = EDITOR_STEP_OBJECTIVE_SELECTION;
|
||||
window_loadsave_invoke_callback(MODAL_RESULT_FAIL, pathBuffer);
|
||||
}
|
||||
@@ -1121,7 +1121,7 @@ static void window_loadsave_select(rct_window* w, const char* path)
|
||||
}
|
||||
else
|
||||
{
|
||||
context_show_error(STR_FILE_DIALOG_TITLE_SAVE_TRACK, STR_TRACK_SAVE_FAILED);
|
||||
context_show_error(STR_FILE_DIALOG_TITLE_SAVE_TRACK, STR_TRACK_SAVE_FAILED, {});
|
||||
window_loadsave_invoke_callback(MODAL_RESULT_FAIL, path);
|
||||
}
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user