mirror of
https://github.com/libretro/RetroArch
synced 2025-01-30 12:32:52 +00:00
Only show start screen if rgui_show_start_screen is set.
Default to true, and set to false on first time.
This commit is contained in:
parent
2d0131ddab
commit
cf7232160b
@ -406,6 +406,9 @@ static const bool stdin_cmd_enable = false;
|
||||
// Number of entries that will be kept in ROM history file.
|
||||
static const unsigned game_history_size = 100;
|
||||
|
||||
// Show RGUI start-up screen on boot.
|
||||
static const bool rgui_show_start_screen = true;
|
||||
|
||||
|
||||
////////////////////
|
||||
// Keybinds, Joypad
|
||||
|
@ -142,7 +142,8 @@ static void *rgui_init(void)
|
||||
rgui->selection_buf = (rgui_list_t*)calloc(1, sizeof(rgui_list_t));
|
||||
rgui_list_push(rgui->menu_stack, "", RGUI_SETTINGS, 0);
|
||||
rgui->selection_ptr = 0;
|
||||
rgui->push_start_screen = true;
|
||||
rgui->push_start_screen = g_settings.rgui_show_start_screen;
|
||||
g_settings.rgui_show_start_screen = false;
|
||||
rgui_settings_populate_entries(rgui);
|
||||
|
||||
// Make sure that custom viewport is something sane incase we use it
|
||||
|
@ -286,6 +286,7 @@ struct settings
|
||||
#if defined(HAVE_RGUI) || defined(HAVE_RMENU) || defined(HAVE_RMENU_XUI)
|
||||
char rgui_browser_directory[PATH_MAX];
|
||||
char rgui_config_directory[PATH_MAX];
|
||||
bool rgui_show_start_screen;
|
||||
#endif
|
||||
};
|
||||
|
||||
|
@ -230,6 +230,8 @@ void config_set_defaults(void)
|
||||
g_settings.stdin_cmd_enable = stdin_cmd_enable;
|
||||
g_settings.game_history_size = game_history_size;
|
||||
|
||||
g_settings.rgui_show_start_screen = rgui_show_start_screen;
|
||||
|
||||
rarch_assert(sizeof(g_settings.input.binds[0]) >= sizeof(retro_keybinds_1));
|
||||
rarch_assert(sizeof(g_settings.input.binds[1]) >= sizeof(retro_keybinds_rest));
|
||||
memcpy(g_settings.input.binds[0], retro_keybinds_1, sizeof(retro_keybinds_1));
|
||||
@ -750,6 +752,7 @@ bool config_load_file(const char *path)
|
||||
CONFIG_GET_PATH(rgui_config_directory, "rgui_config_directory");
|
||||
if (!strcmp(g_settings.rgui_config_directory, "default"))
|
||||
*g_settings.rgui_config_directory = '\0';
|
||||
CONFIG_GET_BOOL(rgui_show_start_screen, "rgui_show_start_screen");
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_OVERLAY
|
||||
@ -1078,6 +1081,7 @@ bool config_save_file(const char *path)
|
||||
#if defined(HAVE_RGUI) || defined(HAVE_RMENU) || defined(HAVE_RMENU_XUI)
|
||||
config_set_string(conf, "rgui_browser_directory", *g_settings.rgui_browser_directory ? g_settings.rgui_browser_directory : "default");
|
||||
config_set_string(conf, "rgui_config_directory", *g_settings.rgui_config_directory ? g_settings.rgui_config_directory : "default");
|
||||
config_set_bool(conf, "rgui_show_start_screen", g_settings.rgui_show_start_screen);
|
||||
#endif
|
||||
|
||||
config_set_string(conf, "game_history_path", g_settings.game_history_path);
|
||||
|
Loading…
x
Reference in New Issue
Block a user