(Cocoa) Remove loadingCore

This commit is contained in:
Twinaphex 2015-04-20 23:16:35 +02:00
parent e1b697937a
commit 70ee864a9f
3 changed files with 5 additions and 15 deletions

View File

@ -25,7 +25,6 @@
#include "../../menu/menu.h"
@protocol RetroArch_Platform
- (void)loadingCore:(NSString*)core withFile:(const char*)file;
- (void)unloadingCore;
@end
@ -209,7 +208,6 @@ void get_ios_version(int *major, int *minor);
@property (nonatomic, retain) NSWindow IBOutlet* window;
- (void)loadingCore:(NSString*)core withFile:(const char*)file;
- (void)unloadingCore;
@end

View File

@ -172,8 +172,6 @@ static char** waiting_argv;
[self.window makeFirstResponder:[CocoaView get]];
self.settingsWindow = [[[NSWindowController alloc] initWithWindowNibName:BOXSTRING("Settings")] autorelease];
[apple_platform loadingCore:nil withFile:nil];
if (rarch_main(waiting_argc, waiting_argv, NULL))
apple_rarch_exited();
@ -305,12 +303,6 @@ static void poll_iteration(void)
[[NSApplication sharedApplication] runModalForWindow:panel];
}
- (void)loadingCore:(const NSString*)core withFile:(const char*)file
{
if (file)
[[NSDocumentController sharedDocumentController] noteNewRecentDocumentURL:[NSURL fileURLWithPath:BOXSTRING(file)]];
}
- (void)unloadingCore
{
[[NSApplication sharedApplication] terminate:nil];

View File

@ -288,7 +288,10 @@ enum
[self pushViewController:[RAMainMenu new] animated:YES];
[apple_platform loadingCore:nil withFile:nil];
btpad_set_inquiry_state(false);
[self refreshSystemConfig];
[self showGameView];
if (rarch_main(0, NULL, NULL))
apple_rarch_exited();
@ -403,10 +406,7 @@ enum
- (void)loadingCore:(NSString*)core withFile:(const char*)file
{
btpad_set_inquiry_state(false);
[self refreshSystemConfig];
[self showGameView];
}
- (void)toggleUI