416 |
/* Called when the internal event loop has just started running */ |
/* Called when the internal event loop has just started running */ |
417 |
- (void)applicationDidFinishLaunching: (NSNotification *) note |
- (void)applicationDidFinishLaunching: (NSNotification *) note |
418 |
{ |
{ |
419 |
|
|
420 |
/* Do whatever we want here : set up a pc list... */ |
/* 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) |
424 |
{ |
{ |
425 |
NSOpenPanel *op = [[NSOpenPanel alloc] init]; |
NSOpenPanel *op = [[NSOpenPanel alloc] init]; |
426 |
|
|
434 |
modalForWindow:window modalDelegate:self |
modalForWindow:window modalDelegate:self |
435 |
didEndSelector:@selector(openPanelDidEnd:returnCode:contextInfo:) contextInfo:NULL]; |
didEndSelector:@selector(openPanelDidEnd:returnCode:contextInfo:) contextInfo:NULL]; |
436 |
} |
} |
437 |
|
else |
438 |
/* or Launch Qemu, with the global args */ |
{ |
439 |
//[self startEmulationWithArgc:gArgc argv:gArgv]; |
/* or Launch Qemu, with the global args */ |
440 |
|
[self startEmulationWithArgc:gArgc argv:gArgv]; |
441 |
|
} |
442 |
} |
} |
443 |
|
|
444 |
- (void)applicationWillTerminate:(NSNotification *)aNotification |
- (void)applicationWillTerminate:(NSNotification *)aNotification |