mirror of
https://github.com/libretro/RetroArch
synced 2025-03-29 22:20:21 +00:00
Move static variables outside of runloop_ctl
This commit is contained in:
parent
6544772fb8
commit
a64fe6ce63
53
runloop.c
53
runloop.c
@ -97,7 +97,32 @@ typedef struct event_cmd_state
|
||||
retro_input_t state[3];
|
||||
} event_cmd_state_t;
|
||||
|
||||
|
||||
static rarch_dir_list_t runloop_shader_dir;
|
||||
static char runloop_fullpath[PATH_MAX_LENGTH];
|
||||
static rarch_system_info_t runloop_system;
|
||||
static unsigned runloop_pending_windowed_scale;
|
||||
static struct retro_frame_time_callback runloop_frame_time;
|
||||
static retro_keyboard_event_t runloop_key_event = NULL;
|
||||
static retro_keyboard_event_t runloop_frontend_key_event = NULL;
|
||||
static retro_usec_t runloop_frame_time_last = 0;
|
||||
static unsigned runloop_max_frames = false;
|
||||
static bool runloop_force_nonblock = false;
|
||||
static bool runloop_frame_time_last_enable = false;
|
||||
static bool runloop_set_frame_limit = false;
|
||||
static bool runloop_paused = false;
|
||||
static bool runloop_idle = false;
|
||||
static bool runloop_exec = false;
|
||||
static bool runloop_slowmotion = false;
|
||||
static bool runloop_shutdown_initiated = false;
|
||||
static bool runloop_core_shutdown_initiated = false;
|
||||
static bool runloop_perfcnt_enable = false;
|
||||
static bool runloop_overrides_active = false;
|
||||
static bool runloop_game_options_active = false;
|
||||
static core_option_manager_t *runloop_core_options = NULL;
|
||||
#ifdef HAVE_THREADS
|
||||
static slock_t *runloop_msg_queue_lock = NULL;
|
||||
#endif
|
||||
static msg_queue_t *runloop_msg_queue = NULL;
|
||||
|
||||
global_t *global_get_ptr(void)
|
||||
{
|
||||
@ -522,32 +547,6 @@ static bool runloop_check_pause_state(event_cmd_state_t *cmd)
|
||||
|
||||
bool runloop_ctl(enum runloop_ctl_state state, void *data)
|
||||
{
|
||||
static rarch_dir_list_t runloop_shader_dir;
|
||||
static char runloop_fullpath[PATH_MAX_LENGTH];
|
||||
static rarch_system_info_t runloop_system;
|
||||
static unsigned runloop_pending_windowed_scale;
|
||||
static struct retro_frame_time_callback runloop_frame_time;
|
||||
static retro_keyboard_event_t runloop_key_event = NULL;
|
||||
static retro_keyboard_event_t runloop_frontend_key_event = NULL;
|
||||
static retro_usec_t runloop_frame_time_last = 0;
|
||||
static unsigned runloop_max_frames = false;
|
||||
static bool runloop_force_nonblock = false;
|
||||
static bool runloop_frame_time_last_enable = false;
|
||||
static bool runloop_set_frame_limit = false;
|
||||
static bool runloop_paused = false;
|
||||
static bool runloop_idle = false;
|
||||
static bool runloop_exec = false;
|
||||
static bool runloop_slowmotion = false;
|
||||
static bool runloop_shutdown_initiated = false;
|
||||
static bool runloop_core_shutdown_initiated = false;
|
||||
static bool runloop_perfcnt_enable = false;
|
||||
static bool runloop_overrides_active = false;
|
||||
static bool runloop_game_options_active = false;
|
||||
static core_option_manager_t *runloop_core_options = NULL;
|
||||
#ifdef HAVE_THREADS
|
||||
static slock_t *runloop_msg_queue_lock = NULL;
|
||||
#endif
|
||||
static msg_queue_t *runloop_msg_queue = NULL;
|
||||
settings_t *settings = config_get_ptr();
|
||||
|
||||
switch (state)
|
||||
|
Loading…
x
Reference in New Issue
Block a user