(Apple/OSX) Get rid of _loaded variable

This commit is contained in:
twinaphex 2014-07-21 03:17:10 +02:00
parent d0cad26627
commit 8e2bfb24a1
2 changed files with 1 additions and 8 deletions

View File

@ -39,8 +39,6 @@
NSWindow* _coreSelectSheet;
NSString* _file;
NSString* _core;
bool _loaded;
bool _wantReload;
}

View File

@ -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];
}