From 2016218fc733bc58c57ebe75c0ba3ed109a2b5de Mon Sep 17 00:00:00 2001 From: twinaphex Date: Sun, 31 May 2020 10:27:29 +0200 Subject: [PATCH] Cleanups --- retroarch.c | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/retroarch.c b/retroarch.c index 802c20c4f8..0b5f6030f0 100644 --- a/retroarch.c +++ b/retroarch.c @@ -1666,6 +1666,10 @@ struct input_keyboard_line void *userdata; }; +#ifdef HAVE_RUNAHEAD +typedef bool(*runahead_load_state_function)(const void*, size_t); +#endif + struct rarch_state { enum rarch_core_type current_core_type; @@ -2069,6 +2073,12 @@ static char input_device_display_names[MAX_INPUT_DEVICES][64]; static char input_device_config_names [MAX_INPUT_DEVICES][64]; static char input_device_config_paths [MAX_INPUT_DEVICES][64]; +#if defined(HAVE_RUNAHEAD) +#if defined(HAVE_DYNAMIC) || defined(HAVE_DYLIB) +static char *secondary_library_path = NULL; +#endif +#endif + static midi_driver_t *midi_drv = &midi_null; static const video_display_server_t *current_display_server = &dispserv_null; @@ -2299,8 +2309,6 @@ static const audio_driver_t *current_audio = NULL; static void *audio_driver_context_audio_data = NULL; #ifdef HAVE_RUNAHEAD -typedef bool(*runahead_load_state_function)(const void*, size_t); - static my_list *runahead_save_state_list = NULL; static my_list *input_state_list = NULL; @@ -2336,12 +2344,6 @@ static void *current_input_data = NULL; static const void *hid_data = NULL; #endif -#if defined(HAVE_RUNAHEAD) -#if defined(HAVE_DYNAMIC) || defined(HAVE_DYLIB) -static char *secondary_library_path = NULL; -#endif -#endif - #if defined(HAVE_COMMAND) #ifdef HAVE_NETWORK_CMD static struct sockaddr_storage lastcmd_net_source;