mirror of
https://github.com/zydeco/minivmac4ios.git
synced 2024-11-29 20:49:27 +00:00
init defaults after loading emulator bundle (fixes initial speed value)
This commit is contained in:
parent
e83ce3238b
commit
4ae967b033
@ -32,12 +32,11 @@ static NSObject<Emulator> *sharedEmulator = nil;
|
|||||||
|
|
||||||
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
|
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
|
||||||
sharedAppDelegate = self;
|
sharedAppDelegate = self;
|
||||||
[self initDefaults];
|
|
||||||
if (![self loadEmulator:[[NSUserDefaults standardUserDefaults] stringForKey:@"machine"]]) {
|
if (![self loadEmulator:[[NSUserDefaults standardUserDefaults] stringForKey:@"machine"]]) {
|
||||||
[self loadEmulator:@"MacPlus4M"];
|
[self loadEmulator:@"MacPlus4M"];
|
||||||
}
|
}
|
||||||
|
[self initDefaults];
|
||||||
[sharedEmulator performSelector:@selector(run) withObject:nil afterDelay:0.1];
|
[sharedEmulator performSelector:@selector(run) withObject:nil afterDelay:0.1];
|
||||||
|
|
||||||
return YES;
|
return YES;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user