mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-01-23 11:45:27 +00:00
(RARCH_CONSOLE) Check if config file exists - if not,set args.config_path to
NULL for rarch_main_init_wrap
This commit is contained in:
parent
25d700d440
commit
474500351c
@ -291,12 +291,16 @@ begin_loop:
|
||||
struct rarch_main_wrap args = {0};
|
||||
|
||||
args.verbose = g_extern.verbose;
|
||||
args.config_path = g_extern.config_path;
|
||||
args.sram_path = (g_extern.lifecycle_mode_state & (1ULL << MODE_LOAD_GAME_SRAM_DIR_ENABLE)) ? g_extern.console.main_wrap.default_sram_dir : NULL;
|
||||
args.state_path = (g_extern.lifecycle_mode_state & (1ULL << MODE_LOAD_GAME_STATE_DIR_ENABLE)) ? g_extern.console.main_wrap.default_savestate_dir : NULL;
|
||||
args.rom_path = g_extern.fullpath;
|
||||
args.libretro_path = g_settings.libretro;
|
||||
|
||||
if (path_file_exists(g_extern.config_path))
|
||||
args.config_path = g_extern.config_path;
|
||||
else
|
||||
args.config_path = NULL;
|
||||
|
||||
int init_ret = rarch_main_init_wrap(&args);
|
||||
|
||||
if (init_ret == 0)
|
||||
|
Loading…
x
Reference in New Issue
Block a user