This commit is contained in:
Twinaphex 2019-01-31 22:18:15 +01:00
parent 6e1658bb30
commit ee36fd54c3

View File

@ -292,10 +292,10 @@ static char** waiting_argv;
- (void)application:(NSApplication *)sender openFiles:(NSArray *)filenames
{
if (filenames.count == 1 && [filenames objectAtIndex:0])
if (filenames.count == 1 && filenames[0])
{
struct retro_system_info *system = runloop_get_libretro_system_info();
NSString *__core = [filenames objectAtIndex:0];
NSString *__core = filenames[0];
const char *core_name = system ? system->library_name : NULL;
if (core_name)