ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/BasiliskII/src/MacOSX/main_macosx.mm
(Generate patch)

Comparing BasiliskII/src/MacOSX/main_macosx.mm (file contents):
Revision 1.5 by nigel, 2003-03-24T22:50:55Z vs.
Revision 1.6 by nigel, 2003-03-25T01:44:16Z

# Line 269 | Line 269 | bool InitEmulator (void)
269          
270          // Get rom file path from preferences
271          const char *rom_path = PrefsFindString("rom");
272 +        if ( ! rom_path )
273 +                WarningAlert("No rom pathname set. Trying ./ROM");
274  
275          // Load Mac ROM
276          int rom_fd = open(rom_path ? rom_path : ROM_FILE_NAME, O_RDONLY);
# Line 318 | Line 320 | bool InitEmulator (void)
320  
321   void QuitEmuNoExit()
322   {
321 //      extern  NSApplication *NSApp;
322
323
323          D(bug("QuitEmulator\n"));
324  
325          // Exit 680x0 emulation
# Line 361 | Line 360 | void QuitEmuNoExit()
360  
361          // Exit preferences
362          PrefsExit();
364
365        // Stop run loop?
366        //[NSApp terminate: nil];
363   }
364  
365   void QuitEmulator(void)
366   {
367 +        extern  NSApplication *NSApp;
368 +
369 +
370          QuitEmuNoExit();
371 +
372 +        // Stop run loop?
373 +        [NSApp terminate: nil];
374 +
375          exit(0);
376   }
377  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines