1.1 --- a/src/cocoaui/cocoaui.m Sun Jan 31 18:36:06 2010 +1000
1.2 +++ b/src/cocoaui/cocoaui.m Sat Aug 25 14:09:07 2012 +1000
1.4 - (BOOL)application: (NSApplication *)app openFile: (NSString *)filename
1.6 const gchar *cname = [filename UTF8String];
1.7 - if( file_load_magic(cname) ) {
1.9 + if( file_load_magic(cname, FALSE, &err) != FILE_ERROR ) {
1.10 // Queue up a run event
1.11 gui_do_later(dreamcast_run);
1.13 @@ -269,8 +270,12 @@
1.14 int result = [panel runModalForDirectory: path file: nil types: nil];
1.15 if( result == NSOKButton && [[panel filenames] count] > 0 ) {
1.16 NSString *filename = [[panel filenames] objectAtIndex: 0];
1.17 - file_load_magic( [filename UTF8String] );
1.19 + gboolean ok = file_load_exec( [filename UTF8String], &err );
1.20 set_gui_path(CONFIG_DEFAULT_PATH, [[panel directory] UTF8String]);
1.26 - (void) mount_action: (id)sender
1.27 @@ -279,8 +284,12 @@
1.28 NSString *path = [NSString stringWithCString: get_gui_path(CONFIG_DEFAULT_PATH)];
1.29 int result = [panel runModalForDirectory: path file: nil types: nil];
1.30 if( result == NSOKButton && [[panel filenames] count] > 0 ) {
1.32 NSString *filename = [[panel filenames] objectAtIndex: 0];
1.33 - gdrom_mount_image( [filename UTF8String] );
1.34 + gboolean ok = gdrom_mount_image( [filename UTF8String], &err );
1.38 set_gui_path(CONFIG_DEFAULT_PATH, [[panel directory] UTF8String]);
1.41 @@ -301,7 +310,11 @@
1.43 - (void) gdrom_list_action: (id)sender
1.45 - gdrom_list_set_selection( [sender tag] );
1.47 + gboolean ok = gdrom_list_set_selection( [sender tag], &err );
1.52 - (void) fullscreen_action: (id)sender