mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-02-10 21:52:42 +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];
|
||||
}
|
||||
|
||||
// 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
|
||||
{
|
||||
[[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);
|
||||
#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
|
||||
|
Loading…
x
Reference in New Issue
Block a user