Set the game path to the launcher resource dir. Can be overwritten using the system defaults mechanism.
This commit is contained in:
@@ -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];
|
||||
|
||||
@@ -20,4 +20,5 @@
|
||||
+ (JSBridge *)sharedInstance;
|
||||
- (void)setController:(Controller *)aController;
|
||||
- (void)notifyDownloadProgress:(Download *)download;
|
||||
- (void)notifyExtractProgress:(Download *)download;
|
||||
@end
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
<key>CFBundleDisplayName</key>
|
||||
<string>OpenRA Launcher</string>
|
||||
<key>CFBundleIdentifier</key>
|
||||
<string>org.open-ra.launcher.mac</string>
|
||||
<string>org.open-ra.launcher</string>
|
||||
<key>CFBundleInfoDictionaryVersion</key>
|
||||
<string>6.0</string>
|
||||
<key>CFBundlePackageType</key>
|
||||
|
||||
Reference in New Issue
Block a user