From ee36fd54c3ea35e8d008d2cd9688a141ebc6598e Mon Sep 17 00:00:00 2001 From: Twinaphex Date: Thu, 31 Jan 2019 22:18:15 +0100 Subject: [PATCH] Cleanups --- ui/drivers/ui_cocoa.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/drivers/ui_cocoa.m b/ui/drivers/ui_cocoa.m index 6a5caaf2fc..c6fc4447e4 100644 --- a/ui/drivers/ui_cocoa.m +++ b/ui/drivers/ui_cocoa.m @@ -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)