diff --git a/OpenRA.Launcher.Mac/GameInstall.m b/OpenRA.Launcher.Mac/GameInstall.m index 1a71013bcd..19cf8bfe17 100644 --- a/OpenRA.Launcher.Mac/GameInstall.m +++ b/OpenRA.Launcher.Mac/GameInstall.m @@ -92,7 +92,13 @@ { // Use LaunchServices because neither NSTask or NSWorkspace support Info.plist _and_ arguments pre-10.6 NSString *path = [[[NSBundle mainBundle] resourcePath] stringByAppendingPathComponent:@"OpenRA.app/Contents/MacOS/OpenRA"]; - NSArray *args = [NSArray arrayWithObjects:[gameURL absoluteString], @"mono", @"--debug", @"OpenRA.Game.exe", [NSString stringWithFormat:@"Game.Mods=%@",mod],nil]; + + // First argument is the directory to run in + // Second...Nth arguments are passed to OpenRA.Game.exe + // Launcher wrapper sets mono --debug, gl renderer and support dir. + NSArray *args = [NSArray arrayWithObjects:[gameURL absoluteString], + [NSString stringWithFormat:@"Game.Mods=%@",mod], + nil]; FSRef appRef; CFURLGetFSRef((CFURLRef)[NSURL URLWithString:path], &appRef); diff --git a/OpenRA.Launcher.Mac/OpenRA.app/Contents/MacOS/OpenRA b/OpenRA.Launcher.Mac/OpenRA.app/Contents/MacOS/OpenRA index a9eb1fd6d0..d47c378914 100755 --- a/OpenRA.Launcher.Mac/OpenRA.app/Contents/MacOS/OpenRA +++ b/OpenRA.Launcher.Mac/OpenRA.app/Contents/MacOS/OpenRA @@ -7,4 +7,4 @@ echo "Launching OpenRA from $1" cd $1 -${@:2} \ No newline at end of file +mono --debug OpenRA.Game.exe Graphics.Renderer=Gl SupportDir=~/Library/"Application Support"/OpenRA ${@:2} \ No newline at end of file