mirror of
https://github.com/libretro/RetroArch
synced 2025-02-06 09:40:06 +00:00
Cleanups
This commit is contained in:
parent
10bf8d4a8a
commit
58c08c0c02
@ -907,7 +907,7 @@ uint64_t input_keys_pressed(
|
||||
|
||||
const struct retro_keybind *focus_binds_auto = &settings->input.autoconf_binds[0][RARCH_GAME_FOCUS_TOGGLE];
|
||||
const struct retro_keybind *focus_normal = &binds[RARCH_GAME_FOCUS_TOGGLE];
|
||||
bool enable_hotkey_valid = settings->input.binds[0][RARCH_ENABLE_HOTKEY].valid;
|
||||
bool enable_hotkey_valid = settings && settings->input.binds[0][RARCH_ENABLE_HOTKEY].valid;
|
||||
bool game_focus_toggle_valid = false;
|
||||
|
||||
joypad_info.joy_idx = 0;
|
||||
|
@ -263,7 +263,7 @@ static void menu_driver_toggle(bool on)
|
||||
/* Stop all rumbling before entering the menu. */
|
||||
command_event(CMD_EVENT_RUMBLE_STOP, NULL);
|
||||
|
||||
if (settings->menu.pause_libretro)
|
||||
if (settings && settings->menu.pause_libretro)
|
||||
command_event(CMD_EVENT_AUDIO_STOP, NULL);
|
||||
|
||||
/* Override keyboard callback to redirect to menu instead.
|
||||
|
@ -282,7 +282,7 @@ int menu_entries_get_core_title(char *s, size_t len)
|
||||
|
||||
runloop_ctl(RUNLOOP_CTL_SYSTEM_INFO_GET, &info);
|
||||
|
||||
if (!settings->menu.core_enable)
|
||||
if (!settings || !settings->menu.core_enable)
|
||||
return -1;
|
||||
|
||||
if (string_is_empty(core_name) && info)
|
||||
|
@ -1338,7 +1338,7 @@ bool rarch_ctl(enum rarch_ctl_state state, void *data)
|
||||
#ifdef HAVE_OVERLAY
|
||||
{
|
||||
settings_t *settings = config_get_ptr();
|
||||
if (settings->input.overlay_hide_in_menu)
|
||||
if (settings && settings->input.overlay_hide_in_menu)
|
||||
command_event(CMD_EVENT_OVERLAY_DEINIT, NULL);
|
||||
}
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user