init defaults after loading emulator bundle (fixes initial speed value)

This commit is contained in:
Jesús A. Álvarez 2016-05-29 00:43:03 +02:00
parent e83ce3238b
commit 4ae967b033

View File

@ -32,12 +32,11 @@ static NSObject<Emulator> *sharedEmulator = nil;
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
sharedAppDelegate = self;
[self initDefaults];
if (![self loadEmulator:[[NSUserDefaults standardUserDefaults] stringForKey:@"machine"]]) {
[self loadEmulator:@"MacPlus4M"];
}
[self initDefaults];
[sharedEmulator performSelector:@selector(run) withObject:nil afterDelay:0.1];
return YES;
}