(Apple) Remove apple_core

This commit is contained in:
Twinaphex 2014-07-21 04:34:53 +02:00
parent d89b65140b
commit 95260e6b83
3 changed files with 6 additions and 6 deletions

View File

@ -40,7 +40,6 @@
#endif
extern char** apple_argv;
extern char apple_core[PATH_MAX];
extern id<RetroArch_Platform> apple_platform;

View File

@ -23,7 +23,6 @@
id<RetroArch_Platform> apple_platform;
#pragma mark EMULATION
char apple_core[PATH_MAX];
void apple_rarch_exited(void)
{
@ -37,9 +36,6 @@ void apple_run_core(NSString* core, const char* file)
int argc;
[apple_platform loadingCore:core withFile:file];
if (core.UTF8String && core.UTF8String[0] != '\0')
strlcpy(apple_core, core.UTF8String, sizeof(apple_core));
if (file && core)
{

View File

@ -559,7 +559,12 @@ static void RunActionSheet(const char* title, const struct string_list* items, U
nil]];
[settings addObject:[RAMenuItemBasic itemWithDescription:BOXSTRING("Core")
action:^{ [weakSelf.navigationController pushViewController:[[RACoreSettingsMenu alloc] initWithCore:BOXSTRING(apple_core)] animated:YES]; }]];
action:^{
char config_name[PATH_MAX];
fill_pathname_base(config_name, g_settings.libretro, sizeof(config_name));
[weakSelf.navigationController pushViewController:[[RACoreSettingsMenu alloc] initWithCore:BOXSTRING(config_name)] animated:YES];
}]];
[settings addObject:[RAMenuItemBasic itemWithDescription:BOXSTRING("Core Options")
action:^{ [weakSelf.navigationController pushViewController:[RACoreOptionsMenu new] animated:YES]; }]];
}