diff --git a/OpenRA.Launcher.Mac/Controller.m b/OpenRA.Launcher.Mac/Controller.m index 9615da18b8..06752f500a 100644 --- a/OpenRA.Launcher.Mac/Controller.m +++ b/OpenRA.Launcher.Mac/Controller.m @@ -18,9 +18,18 @@ @synthesize allMods; @synthesize webView; ++ (void)initialize +{ + [[NSUserDefaults standardUserDefaults] + registerDefaults:[NSDictionary dictionaryWithObject:[[NSBundle mainBundle] resourcePath] + forKey:@"gamepath"]]; +} + - (void)awakeFromNib { - game = [[GameInstall alloc] initWithURL:[NSURL URLWithString:@"/Users/paul/src/OpenRA"]]; + NSString *gamePath = [[NSUserDefaults standardUserDefaults] stringForKey:@"gamepath"]; + + game = [[GameInstall alloc] initWithURL:[NSURL URLWithString:gamePath]]; [[JSBridge sharedInstance] setController:self]; downloads = [[NSMutableDictionary alloc] init]; hasMono = [self hasSupportedMono]; diff --git a/OpenRA.Launcher.Mac/JSBridge.h b/OpenRA.Launcher.Mac/JSBridge.h index a4a78dcd01..dfa82e0836 100644 --- a/OpenRA.Launcher.Mac/JSBridge.h +++ b/OpenRA.Launcher.Mac/JSBridge.h @@ -20,4 +20,5 @@ + (JSBridge *)sharedInstance; - (void)setController:(Controller *)aController; - (void)notifyDownloadProgress:(Download *)download; +- (void)notifyExtractProgress:(Download *)download; @end diff --git a/OpenRA.Launcher.Mac/OpenRA-Info.plist b/OpenRA.Launcher.Mac/OpenRA-Info.plist index 1fa4f51735..95ace488c8 100644 --- a/OpenRA.Launcher.Mac/OpenRA-Info.plist +++ b/OpenRA.Launcher.Mac/OpenRA-Info.plist @@ -13,7 +13,7 @@ CFBundleDisplayName OpenRA Launcher CFBundleIdentifier - org.open-ra.launcher.mac + org.open-ra.launcher CFBundleInfoDictionaryVersion 6.0 CFBundlePackageType