mirror of
https://github.com/libretro/RetroArch
synced 2025-04-09 21:45:45 +00:00
Get rid of RetroArch_OSX get
This commit is contained in:
parent
09fe3e9176
commit
d18f705873
@ -209,8 +209,6 @@ void get_ios_version(int *major, int *minor);
|
|||||||
|
|
||||||
@property (nonatomic, retain) NSWindow IBOutlet* window;
|
@property (nonatomic, retain) NSWindow IBOutlet* window;
|
||||||
|
|
||||||
+ (RetroArch_OSX*)get;
|
|
||||||
|
|
||||||
- (void)loadingCore:(NSString*)core withFile:(const char*)file;
|
- (void)loadingCore:(NSString*)core withFile:(const char*)file;
|
||||||
- (void)unloadingCore;
|
- (void)unloadingCore;
|
||||||
|
|
||||||
|
@ -156,11 +156,6 @@ static char** waiting_argv;
|
|||||||
[super dealloc];
|
[super dealloc];
|
||||||
}
|
}
|
||||||
|
|
||||||
+ (RetroArch_OSX*)get
|
|
||||||
{
|
|
||||||
return (RetroArch_OSX*)[[NSApplication sharedApplication] delegate];
|
|
||||||
}
|
|
||||||
|
|
||||||
- (void)applicationDidFinishLaunching:(NSNotification *)aNotification
|
- (void)applicationDidFinishLaunching:(NSNotification *)aNotification
|
||||||
{
|
{
|
||||||
apple_platform = self;
|
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 setMessageText:(*title) ? BOXSTRING(title) : BOXSTRING("RetroArch")];
|
||||||
[alert setInformativeText:BOXSTRING(message)];
|
[alert setInformativeText:BOXSTRING(message)];
|
||||||
[alert setAlertStyle:NSInformationalAlertStyle];
|
[alert setAlertStyle:NSInformationalAlertStyle];
|
||||||
[alert beginSheetModalForWindow:[RetroArch_OSX get].window
|
[alert beginSheetModalForWindow:((RetroArch_OSX*)[[NSApplication sharedApplication] delegate]).window
|
||||||
modalDelegate:apple_platform
|
modalDelegate:apple_platform
|
||||||
didEndSelector:@selector(alertDidEnd:returnCode:contextInfo:)
|
didEndSelector:@selector(alertDidEnd:returnCode:contextInfo:)
|
||||||
contextInfo:nil];
|
contextInfo:nil];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user