mirror of
https://github.com/CTCaer/RetroArch.git
synced 2024-12-23 19:24:46 +00:00
(iOS) Get rid of dead code in 'applicationDidFinishLaunching'
This commit is contained in:
parent
4f9812da6b
commit
3b2a6c9df2
@ -188,43 +188,6 @@ static void handle_touch_event(NSArray* touches)
|
||||
[self showPauseMenu:self];
|
||||
[self.window makeKeyAndVisible];
|
||||
|
||||
#if 0
|
||||
const char *paths;
|
||||
|
||||
// Build system paths and test permissions
|
||||
self.documentsDirectory = [NSHomeDirectory() stringByAppendingPathComponent:@"Documents"];
|
||||
fill_pathname_join(g_defaults.system_dir, self.documentsDirectory.UTF8String, ".RetroArch", sizeof(g_defaults.system_dir));
|
||||
fill_pathname_join(g_defaults.core_dir, NSBundle.mainBundle.bundlePath.UTF8String, "modules", sizeof(g_defaults.core_dir));
|
||||
|
||||
strlcpy(g_defaults.menu_config_dir, g_defaults.system_dir, sizeof(g_defaults.menu_config_dir));
|
||||
fill_pathname_join(g_defaults.config_path, g_defaults.menu_config_dir, "retroarch.cfg", sizeof(g_defaults.config_path));
|
||||
|
||||
strlcpy(g_defaults.sram_dir, g_defaults.system_dir, sizeof(g_defaults.sram_dir));
|
||||
strlcpy(g_defaults.savestate_dir, g_defaults.system_dir, sizeof(g_defaults.savestate_dir));
|
||||
|
||||
paths = (const char*)self.documentsDirectory.UTF8String;
|
||||
path_mkdir(paths);
|
||||
|
||||
if (access(paths, 0755) != 0)
|
||||
{
|
||||
char msg[256];
|
||||
snprintf(msg, sizeof(msg), "Failed to create or access base directory: %s", self.documentsDirectory.UTF8String);
|
||||
apple_display_alert(msg, "Error");
|
||||
}
|
||||
else
|
||||
{
|
||||
paths = g_defaults.system_dir;
|
||||
path_mkdir(paths);
|
||||
|
||||
if (access(paths, 0755) != 0)
|
||||
{
|
||||
char msg[256];
|
||||
snprintf(msg, sizeof(msg), "Failed to create or access system directory: %s", g_defaults.system_dir);
|
||||
apple_display_alert(msg, "Error");
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
[self pushViewController:[RAMainMenu new] animated:YES];
|
||||
|
||||
// Warn if there are no cores present
|
||||
|
Loading…
Reference in New Issue
Block a user