1
0
mirror of https://github.com/libretro/RetroArch synced 2025-03-27 05:37:40 +00:00

Change more calls to menu_display_msg_queue_push

This commit is contained in:
twinaphex 2015-09-22 22:14:03 +02:00
parent 056dc5f3e1
commit 0730af5919
4 changed files with 10 additions and 8 deletions

@ -1653,7 +1653,7 @@ static int action_ok_video_resolution(const char *path,
global->console.screen.resolutions.height = height; global->console.screen.resolutions.height = height;
snprintf(msg, sizeof(msg),"Applying: %dx%d\n START to reset",width, height); snprintf(msg, sizeof(msg),"Applying: %dx%d\n START to reset",width, height);
rarch_main_msg_queue_push(msg, 1, 100, true); menu_display_msg_queue_push(msg, 1, 100, true);
} }
#endif #endif

@ -16,6 +16,7 @@
#include "../menu.h" #include "../menu.h"
#include "../menu_cbs.h" #include "../menu_cbs.h"
#include "../menu_input.h" #include "../menu_input.h"
#include "../menu_display.h"
#include "../menu_setting.h" #include "../menu_setting.h"
#include "../menu_shader.h" #include "../menu_shader.h"
#include "../menu_hash.h" #include "../menu_hash.h"
@ -277,7 +278,7 @@ static int action_start_video_resolution(
global->console.screen.resolutions.height = height; global->console.screen.resolutions.height = height;
snprintf(msg, sizeof(msg),"Resetting to: %dx%d",width, height); snprintf(msg, sizeof(msg),"Resetting to: %dx%d",width, height);
rarch_main_msg_queue_push(msg, 1, 100, true); menu_display_msg_queue_push(msg, 1, 100, true);
} }
return 0; return 0;

@ -59,12 +59,12 @@ static void menu_push_to_history_playlist(void)
if (*global->path.fullpath) if (*global->path.fullpath)
{ {
char tmp[PATH_MAX_LENGTH] = {0}; char tmp[PATH_MAX_LENGTH];
char str[PATH_MAX_LENGTH] = {0}; char str[PATH_MAX_LENGTH];
fill_pathname_base(tmp, global->path.fullpath, sizeof(tmp)); fill_pathname_base(tmp, global->path.fullpath, sizeof(tmp));
snprintf(str, sizeof(str), "INFO - Loading %s ...", tmp); snprintf(str, sizeof(str), "INFO - Loading %s ...", tmp);
rarch_main_msg_queue_push(str, 1, 1, false); menu_display_msg_queue_push(str, 1, 1, false);
} }
content_playlist_push(g_defaults.history, content_playlist_push(g_defaults.history,
@ -106,7 +106,7 @@ bool menu_load_content(enum rarch_core_type type)
fill_pathname_base(name, global->path.fullpath, sizeof(name)); fill_pathname_base(name, global->path.fullpath, sizeof(name));
snprintf(msg, sizeof(msg), "Failed to load %s.\n", name); snprintf(msg, sizeof(msg), "Failed to load %s.\n", name);
rarch_main_msg_queue_push(msg, 1, 90, false); menu_display_msg_queue_push(msg, 1, 90, false);
if (disp) if (disp)
disp->msg_force = true; disp->msg_force = true;

@ -29,6 +29,7 @@
#include "menu_setting.h" #include "menu_setting.h"
#include "menu.h" #include "menu.h"
#include "menu_display.h"
#include "menu_input.h" #include "menu_input.h"
#include "menu_hash.h" #include "menu_hash.h"
@ -982,9 +983,9 @@ static int setting_action_ok_bind_all_save_autoconfig(void *data, bool wraparoun
return -1; return -1;
if(config_save_autoconf_profile(settings->input.device_names[setting->index_offset], setting->index_offset)) if(config_save_autoconf_profile(settings->input.device_names[setting->index_offset], setting->index_offset))
rarch_main_msg_queue_push("Autoconf file saved successfully", 1, 100, true); menu_display_msg_queue_push("Autoconf file saved successfully", 1, 100, true);
else else
rarch_main_msg_queue_push("Error saving autoconf file", 1, 100, true); menu_display_msg_queue_push("Error saving autoconf file", 1, 100, true);
return 0; return 0;
} }