mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-25 00:49:47 +00:00
Move more state to runloop_state (in preparation of removing path_clear
and path_is_empty)
This commit is contained in:
parent
244a2ad052
commit
621a0b61f6
487
retroarch.c
487
retroarch.c
File diff suppressed because it is too large
Load Diff
25
retroarch.h
25
retroarch.h
@ -51,6 +51,7 @@
|
||||
#include "core_type.h"
|
||||
#include "core.h"
|
||||
#include "core_option_manager.h"
|
||||
#include "performance_counters.h"
|
||||
|
||||
#ifdef HAVE_MENU
|
||||
#include "menu/menu_defines.h"
|
||||
@ -2131,6 +2132,9 @@ struct runloop
|
||||
retro_time_t frame_time_samples[
|
||||
MEASURE_FRAME_TIME_SAMPLES_COUNT];
|
||||
|
||||
#if defined(HAVE_CG) || defined(HAVE_GLSL) || defined(HAVE_SLANG) || defined(HAVE_HLSL)
|
||||
rarch_timer_t shader_delay_timer; /* int64_t alignment */
|
||||
#endif
|
||||
retro_usec_t frame_time_last; /* int64_t alignment */
|
||||
|
||||
uint64_t frame_time_count;
|
||||
@ -2156,6 +2160,7 @@ struct runloop
|
||||
slock_t *display_lock;
|
||||
slock_t *context_lock;
|
||||
#endif
|
||||
struct string_list *subsystem_fullpaths;
|
||||
|
||||
core_option_manager_t *core_options;
|
||||
retro_keyboard_event_t key_event; /* ptr alignment */
|
||||
@ -2167,6 +2172,7 @@ struct runloop
|
||||
#ifdef HAVE_BSV_MOVIE
|
||||
bsv_movie_t *bsv_movie_state_handle; /* ptr alignment */
|
||||
#endif
|
||||
bool *load_no_content_hook;
|
||||
|
||||
void *audio_context_audio_data;
|
||||
void *audio_resampler_data;
|
||||
@ -2202,6 +2208,25 @@ struct runloop
|
||||
#ifdef HAVE_BSV_MOVIE
|
||||
struct bsv_state bsv_movie_state; /* char alignment */
|
||||
#endif
|
||||
char current_savefile_dir[PATH_MAX_LENGTH];
|
||||
char current_savestate_dir[PATH_MAX_LENGTH];
|
||||
char path_default_shader_preset[PATH_MAX_LENGTH];
|
||||
char subsystem_path[PATH_MAX_LENGTH];
|
||||
char runtime_content_path[PATH_MAX_LENGTH];
|
||||
char runtime_core_path[PATH_MAX_LENGTH];
|
||||
char path_content[PATH_MAX_LENGTH];
|
||||
char path_libretro[PATH_MAX_LENGTH];
|
||||
char path_config_file[PATH_MAX_LENGTH];
|
||||
char path_config_append_file[PATH_MAX_LENGTH];
|
||||
char path_core_options_file[PATH_MAX_LENGTH];
|
||||
#if defined(HAVE_CG) || defined(HAVE_GLSL) || defined(HAVE_SLANG) || defined(HAVE_HLSL)
|
||||
char cli_shader[PATH_MAX_LENGTH];
|
||||
char runtime_shader_preset[PATH_MAX_LENGTH];
|
||||
#endif
|
||||
char path_main_basename[8192];
|
||||
char current_library_name[256];
|
||||
char current_library_version[256];
|
||||
char current_valid_extensions[256];
|
||||
|
||||
input_game_focus_state_t game_focus_state; /* bool alignment */
|
||||
#ifdef HAVE_GFX_WIDGETS
|
||||
|
@ -1576,11 +1576,6 @@ struct rarch_state
|
||||
menu_input_t menu_input_state; /* retro_time_t alignment */
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
#if defined(HAVE_CG) || defined(HAVE_GLSL) || defined(HAVE_SLANG) || defined(HAVE_HLSL)
|
||||
rarch_timer_t shader_delay_timer; /* int64_t alignment */
|
||||
#endif
|
||||
#ifdef HAVE_DISCORD
|
||||
discord_state_t discord_st; /* int64_t alignment */
|
||||
#endif
|
||||
@ -1607,7 +1602,6 @@ struct rarch_state
|
||||
input_remote_state_t remote_st_ptr; /* uint64_t alignment */
|
||||
#endif
|
||||
|
||||
struct string_list *subsystem_fullpaths;
|
||||
struct string_list *midi_drv_inputs;
|
||||
struct string_list *midi_drv_outputs;
|
||||
struct string_list *audio_driver_devices_list;
|
||||
@ -1615,7 +1609,6 @@ struct rarch_state
|
||||
uint8_t *video_driver_record_gpu_buffer;
|
||||
uint8_t *midi_drv_input_buffer;
|
||||
uint8_t *midi_drv_output_buffer;
|
||||
bool *load_no_content_hook;
|
||||
char *osk_grid[45];
|
||||
#if defined(HAVE_RUNAHEAD)
|
||||
#if defined(HAVE_DYNAMIC) || defined(HAVE_DYLIB)
|
||||
@ -1919,32 +1912,11 @@ struct rarch_state
|
||||
#ifdef HAVE_NETWORKING
|
||||
char server_address_deferred[512];
|
||||
#endif
|
||||
char current_library_name[256];
|
||||
char current_library_version[256];
|
||||
char current_valid_extensions[256];
|
||||
char launch_arguments[4096];
|
||||
char path_main_basename[8192];
|
||||
#if defined(HAVE_CG) || defined(HAVE_GLSL) || defined(HAVE_SLANG) || defined(HAVE_HLSL)
|
||||
char cli_shader[PATH_MAX_LENGTH];
|
||||
char runtime_shader_preset[PATH_MAX_LENGTH];
|
||||
#endif
|
||||
char runtime_content_path[PATH_MAX_LENGTH];
|
||||
char runtime_core_path[PATH_MAX_LENGTH];
|
||||
char subsystem_path[PATH_MAX_LENGTH];
|
||||
char path_default_shader_preset[PATH_MAX_LENGTH];
|
||||
char path_content[PATH_MAX_LENGTH];
|
||||
char path_libretro[PATH_MAX_LENGTH];
|
||||
char path_config_file[PATH_MAX_LENGTH];
|
||||
char path_config_append_file[PATH_MAX_LENGTH];
|
||||
char path_core_options_file[PATH_MAX_LENGTH];
|
||||
char dir_system[PATH_MAX_LENGTH];
|
||||
char dir_savefile[PATH_MAX_LENGTH];
|
||||
char current_savefile_dir[PATH_MAX_LENGTH];
|
||||
char current_savestate_dir[PATH_MAX_LENGTH];
|
||||
char dir_savestate[PATH_MAX_LENGTH];
|
||||
retro_bits_512_t keyboard_mapping_bits;
|
||||
|
||||
|
||||
};
|
||||
|
||||
static struct rarch_state rarch_st;
|
||||
|
@ -207,6 +207,7 @@ static int menu_input_post_iterate(
|
||||
|
||||
static bool retroarch_apply_shader(
|
||||
struct rarch_state *p_rarch,
|
||||
runloop_state_t *p_runloop,
|
||||
settings_t *settings,
|
||||
enum rarch_shader_type type, const char *preset_path,
|
||||
bool message);
|
||||
|
Loading…
Reference in New Issue
Block a user