Get rid of RetroArch_OSX get

This commit is contained in:
Twinaphex 2015-04-20 18:18:26 +02:00
parent 09fe3e9176
commit d18f705873
2 changed files with 1 additions and 8 deletions

View File

@ -209,8 +209,6 @@ void get_ios_version(int *major, int *minor);
@property (nonatomic, retain) NSWindow IBOutlet* window;
+ (RetroArch_OSX*)get;
- (void)loadingCore:(NSString*)core withFile:(const char*)file;
- (void)unloadingCore;

View File

@ -156,11 +156,6 @@ static char** waiting_argv;
[super dealloc];
}
+ (RetroArch_OSX*)get
{
return (RetroArch_OSX*)[[NSApplication sharedApplication] delegate];
}
- (void)applicationDidFinishLaunching:(NSNotification *)aNotification
{
apple_platform = self;
@ -418,7 +413,7 @@ void apple_display_alert(const char *message, const char *title)
[alert setMessageText:(*title) ? BOXSTRING(title) : BOXSTRING("RetroArch")];
[alert setInformativeText:BOXSTRING(message)];
[alert setAlertStyle:NSInformationalAlertStyle];
[alert beginSheetModalForWindow:[RetroArch_OSX get].window
[alert beginSheetModalForWindow:((RetroArch_OSX*)[[NSApplication sharedApplication] delegate]).window
modalDelegate:apple_platform
didEndSelector:@selector(alertDidEnd:returnCode:contextInfo:)
contextInfo:nil];