mirror of
https://github.com/libretro/RetroArch
synced 2025-03-17 10:21:26 +00:00
Use runloop_get_libretro_system_info in more places - clean some code up
(cherry picked from commit a662b62d192787543f504f4535da523991c906ba)
This commit is contained in:
parent
9a73bae868
commit
512a681345
@ -293,13 +293,9 @@ static char** waiting_argv;
|
||||
{
|
||||
if (filenames.count == 1 && [filenames objectAtIndex:0])
|
||||
{
|
||||
rarch_system_info_t *info = runloop_get_system_info();
|
||||
struct retro_system_info *system = &info->info;
|
||||
struct retro_system_info *system = runloop_get_libretro_system_info();
|
||||
NSString *__core = [filenames objectAtIndex:0];
|
||||
const char *core_name = NULL;
|
||||
|
||||
if (system)
|
||||
core_name = system->library_name;
|
||||
const char *core_name = system ? system->library_name : NULL;
|
||||
|
||||
if (core_name)
|
||||
{
|
||||
@ -369,12 +365,8 @@ static void open_document_handler(ui_browser_window_state_t *state, bool result)
|
||||
if (!result)
|
||||
return;
|
||||
|
||||
rarch_system_info_t *info = runloop_get_system_info();
|
||||
struct retro_system_info *system = &info->info;
|
||||
const char *core_name = NULL;
|
||||
|
||||
if (system)
|
||||
core_name = system->library_name;
|
||||
struct retro_system_info *system = runloop_get_libretro_system_info();
|
||||
const char *core_name = system ? system->library_name : NULL;
|
||||
|
||||
path_set(RARCH_PATH_CONTENT, state->result);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user