Revision 5a246934 cocoa.m

b/cocoa.m
416 416
/* Called when the internal event loop has just started running */
417 417
- (void)applicationDidFinishLaunching: (NSNotification *) note
418 418
{
419
    
420
    /* Do whatever we want here : set up a pc list... */
419

  
420
    /* Display an open dialog box if no argument were passed or
421
       if qemu was launched from the finder ( the Finder passes "-psn" ) */
422

  
423
    if( gArgc <= 1 || strncmp (gArgv[1], "-psn", 4) == 0)
421 424
    {
422 425
        NSOpenPanel *op = [[NSOpenPanel alloc] init];
423 426
        
......
431 434
              modalForWindow:window modalDelegate:self
432 435
              didEndSelector:@selector(openPanelDidEnd:returnCode:contextInfo:) contextInfo:NULL];
433 436
    }
434
    
435
    /* or Launch Qemu, with the global args */
436
    //[self startEmulationWithArgc:gArgc argv:gArgv];
437
    else
438
    {
439
        /* or Launch Qemu, with the global args */
440
        [self startEmulationWithArgc:gArgc argv:gArgv];
441
    }
437 442
}
438 443

  
439 444
- (void)applicationWillTerminate:(NSNotification *)aNotification

Also available in: Unified diff