mirror of
https://github.com/libretro/RetroArch
synced 2025-03-28 19:20:35 +00:00
(Apple/OSX) Get rid of _loaded variable
This commit is contained in:
parent
d0cad26627
commit
8e2bfb24a1
@ -39,8 +39,6 @@
|
||||
NSWindow* _coreSelectSheet;
|
||||
NSString* _file;
|
||||
NSString* _core;
|
||||
|
||||
bool _loaded;
|
||||
bool _wantReload;
|
||||
}
|
||||
|
||||
|
@ -128,7 +128,6 @@ static char** waiting_argv;
|
||||
int i;
|
||||
const char *paths = [[NSSearchPathForDirectoriesInDomains(NSApplicationSupportDirectory, NSUserDomainMask, YES) firstObject] UTF8String];
|
||||
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.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])
|
||||
{
|
||||
self.file = [filenames objectAtIndex:0];
|
||||
|
||||
if (!_loaded)
|
||||
_wantReload = true;
|
||||
else
|
||||
[self chooseCore];
|
||||
[self chooseCore];
|
||||
|
||||
[sender replyToOpenOrPrint:NSApplicationDelegateReplySuccess];
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user