mirror of
https://github.com/libretro/RetroArch
synced 2025-04-10 06:44:27 +00:00
(Apple/OSX) Get rid of _loaded variable
This commit is contained in:
parent
d0cad26627
commit
8e2bfb24a1
@ -39,8 +39,6 @@
|
|||||||
NSWindow* _coreSelectSheet;
|
NSWindow* _coreSelectSheet;
|
||||||
NSString* _file;
|
NSString* _file;
|
||||||
NSString* _core;
|
NSString* _core;
|
||||||
|
|
||||||
bool _loaded;
|
|
||||||
bool _wantReload;
|
bool _wantReload;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -128,7 +128,6 @@ static char** waiting_argv;
|
|||||||
int i;
|
int i;
|
||||||
const char *paths = [[NSSearchPathForDirectoriesInDomains(NSApplicationSupportDirectory, NSUserDomainMask, YES) firstObject] UTF8String];
|
const char *paths = [[NSSearchPathForDirectoriesInDomains(NSApplicationSupportDirectory, NSUserDomainMask, YES) firstObject] UTF8String];
|
||||||
apple_platform = self;
|
apple_platform = self;
|
||||||
_loaded = true;
|
|
||||||
|
|
||||||
fill_pathname_join(g_defaults.menu_config_dir, paths, "RetroArch", sizeof(g_defaults.menu_config_dir));
|
fill_pathname_join(g_defaults.menu_config_dir, paths, "RetroArch", sizeof(g_defaults.menu_config_dir));
|
||||||
fill_pathname_join(g_defaults.config_path, g_defaults.menu_config_dir, "retroarch.cfg", sizeof(g_defaults.config_path));
|
fill_pathname_join(g_defaults.config_path, g_defaults.menu_config_dir, "retroarch.cfg", sizeof(g_defaults.config_path));
|
||||||
@ -207,11 +206,7 @@ static char** waiting_argv;
|
|||||||
if (filenames.count == 1 && [filenames objectAtIndex:0])
|
if (filenames.count == 1 && [filenames objectAtIndex:0])
|
||||||
{
|
{
|
||||||
self.file = [filenames objectAtIndex:0];
|
self.file = [filenames objectAtIndex:0];
|
||||||
|
[self chooseCore];
|
||||||
if (!_loaded)
|
|
||||||
_wantReload = true;
|
|
||||||
else
|
|
||||||
[self chooseCore];
|
|
||||||
|
|
||||||
[sender replyToOpenOrPrint:NSApplicationDelegateReplySuccess];
|
[sender replyToOpenOrPrint:NSApplicationDelegateReplySuccess];
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user