Use ~/Library/Application Support/OpenRA/ as the support dir.

This commit is contained in:
Paul Chote
2010-11-17 14:37:32 +13:00
parent 034196ddd6
commit 085685a769
2 changed files with 8 additions and 2 deletions

View File

@@ -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);

View File

@@ -7,4 +7,4 @@
echo "Launching OpenRA from $1"
cd $1
${@:2}
mono --debug OpenRA.Game.exe Graphics.Renderer=Gl SupportDir=~/Library/"Application Support"/OpenRA ${@:2}