mirror of
https://github.com/libretro/RetroArch
synced 2025-04-16 08:43:10 +00:00
SHUTDOWN should exit RetroArch.
This commit is contained in:
parent
d2b55f38cd
commit
802851ecf2
16
retroarch.c
16
retroarch.c
@ -33,6 +33,10 @@
|
|||||||
#include "cheats.h"
|
#include "cheats.h"
|
||||||
#include "compat/getopt_rarch.h"
|
#include "compat/getopt_rarch.h"
|
||||||
|
|
||||||
|
#ifdef RARCH_CONSOLE
|
||||||
|
#include "console/console_ext_input.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
#if defined(_WIN32) && !defined(_XBOX)
|
#if defined(_WIN32) && !defined(_XBOX)
|
||||||
#define WIN32_LEAN_AND_MEAN
|
#define WIN32_LEAN_AND_MEAN
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
@ -2409,10 +2413,18 @@ bool rarch_main_iterate(void)
|
|||||||
g_extern.audio_data.dsp_plugin->events(g_extern.audio_data.dsp_handle);
|
g_extern.audio_data.dsp_plugin->events(g_extern.audio_data.dsp_handle);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
// SHUTDOWN on consoles should exit RetroArch completely.
|
||||||
|
if (g_extern.system.shutdown)
|
||||||
|
{
|
||||||
|
#ifdef RARCH_CONSOLE
|
||||||
|
g_console.mode_switch = MODE_EXIT;
|
||||||
|
#endif
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
// Time to drop?
|
// Time to drop?
|
||||||
if (input_key_pressed_func(RARCH_QUIT_KEY) ||
|
if (input_key_pressed_func(RARCH_QUIT_KEY) ||
|
||||||
!video_alive_func() ||
|
!video_alive_func())
|
||||||
g_extern.system.shutdown)
|
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
// Checks for stuff like fullscreen, save states, etc.
|
// Checks for stuff like fullscreen, save states, etc.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user