mirror of
https://github.com/libretro/RetroArch
synced 2025-03-29 22:20:21 +00:00
(Apple) Don't have ifdef IOS conditional in apple_run_core
This commit is contained in:
parent
edc30665e7
commit
34002c0e10
@ -42,8 +42,6 @@ void apple_run_core(NSString* core, const char* file)
|
||||
char **argv;
|
||||
int argc;
|
||||
|
||||
(void)config_path;
|
||||
|
||||
[apple_platform loadingCore:core withFile:file];
|
||||
|
||||
apple_core = core;
|
||||
@ -54,7 +52,6 @@ void apple_run_core(NSString* core, const char* file)
|
||||
strlcpy(file_path, file, sizeof(file_path));
|
||||
}
|
||||
|
||||
#ifdef IOS
|
||||
if (core_info_has_custom_config(apple_core.UTF8String))
|
||||
core_info_get_custom_config(apple_core.UTF8String, config_path, sizeof(config_path));
|
||||
else
|
||||
@ -64,12 +61,6 @@ void apple_run_core(NSString* core, const char* file)
|
||||
static const char* const argv_menu[] = { "retroarch", "-c", config_path, "--menu", 0 };
|
||||
|
||||
argc = (file && core) ? 6 : 4;
|
||||
#else
|
||||
static const char* const argv_game[] = { "retroarch", "-L", core_path, file_path, 0 };
|
||||
static const char* const argv_menu[] = { "retroarch", "--menu", 0 };
|
||||
|
||||
argc = (file && core) ? 4 : 2;
|
||||
#endif
|
||||
argv = (char**)((file && core) ? argv_game : argv_menu);
|
||||
|
||||
if (apple_rarch_load_content(&argc, argv))
|
||||
|
Loading…
x
Reference in New Issue
Block a user