mirror of
https://github.com/libretro/RetroArch
synced 2025-04-18 05:43:34 +00:00
(Apple/OSX) Get rid of 'runCore' function
This commit is contained in:
parent
38de4198a3
commit
4894e2134f
@ -249,17 +249,6 @@ static char** waiting_argv;
|
|||||||
[[NSApplication sharedApplication] runModalForWindow:panel];
|
[[NSApplication sharedApplication] runModalForWindow:panel];
|
||||||
}
|
}
|
||||||
|
|
||||||
// This utility function will queue the self.core and self.file instance values for running.
|
|
||||||
- (void)runCore
|
|
||||||
{
|
|
||||||
_wantReload = g_extern.main_is_init;
|
|
||||||
|
|
||||||
if (!g_extern.main_is_init)
|
|
||||||
apple_run_core(self.core, self.file.UTF8String);
|
|
||||||
else
|
|
||||||
g_extern.system.shutdown = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
- (void)chooseCore
|
- (void)chooseCore
|
||||||
{
|
{
|
||||||
[[NSApplication sharedApplication] beginSheet:self.coreSelectSheet modalForWindow:self.window modalDelegate:nil didEndSelector:nil contextInfo:nil];
|
[[NSApplication sharedApplication] beginSheet:self.coreSelectSheet modalForWindow:self.window modalDelegate:nil didEndSelector:nil contextInfo:nil];
|
||||||
@ -283,7 +272,12 @@ static char** waiting_argv;
|
|||||||
self.core = objc_getAssociatedObject(cb.objectValueOfSelectedItem, associated_core_key);
|
self.core = objc_getAssociatedObject(cb.objectValueOfSelectedItem, associated_core_key);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
[self runCore];
|
_wantReload = g_extern.main_is_init;
|
||||||
|
|
||||||
|
if (!g_extern.main_is_init)
|
||||||
|
apple_run_core(self.core, self.file.UTF8String);
|
||||||
|
else
|
||||||
|
g_extern.system.shutdown = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
#pragma mark RetroArch_Platform
|
#pragma mark RetroArch_Platform
|
||||||
|
Loading…
x
Reference in New Issue
Block a user