[osx] Load packages from the support dir.
This commit is contained in:
@@ -125,6 +125,7 @@ extern char **environ;
|
|||||||
monoPath,
|
monoPath,
|
||||||
[NSString stringWithFormat:@"UtilityPath=%@", [[[NSBundle mainBundle] executablePath] stringByAddingPercentEscapesUsingEncoding:NSASCIIStringEncoding]],
|
[NSString stringWithFormat:@"UtilityPath=%@", [[[NSBundle mainBundle] executablePath] stringByAddingPercentEscapesUsingEncoding:NSASCIIStringEncoding]],
|
||||||
[NSString stringWithFormat:@"SupportDir=%@",[@"~/Library/Application Support/OpenRA" stringByExpandingTildeInPath]],
|
[NSString stringWithFormat:@"SupportDir=%@",[@"~/Library/Application Support/OpenRA" stringByExpandingTildeInPath]],
|
||||||
|
[NSString stringWithFormat:@"SpecialPackageRoot=%@/",[@"~/Library/Application Support/OpenRA" stringByExpandingTildeInPath]],
|
||||||
nil];
|
nil];
|
||||||
FSRef appRef;
|
FSRef appRef;
|
||||||
CFURLGetFSRef((CFURLRef)[NSURL URLWithString:[[[NSBundle mainBundle] executablePath] stringByAddingPercentEscapesUsingEncoding:NSASCIIStringEncoding]], &appRef);
|
CFURLGetFSRef((CFURLRef)[NSURL URLWithString:[[[NSBundle mainBundle] executablePath] stringByAddingPercentEscapesUsingEncoding:NSASCIIStringEncoding]], &appRef);
|
||||||
|
|||||||
Binary file not shown.
@@ -13,7 +13,7 @@ int main(int argc, char *argv[])
|
|||||||
{
|
{
|
||||||
/* When launching a mod, the arguments are of the form
|
/* When launching a mod, the arguments are of the form
|
||||||
* --launch <game dir> <mono path> <utility path> <support dir option> <mod option> */
|
* --launch <game dir> <mono path> <utility path> <support dir option> <mod option> */
|
||||||
if (argc >= 7 && strcmp(argv[1], "--launch") == 0)
|
if (argc >= 8 && strcmp(argv[1], "--launch") == 0)
|
||||||
{
|
{
|
||||||
/* Change into the game dir */
|
/* Change into the game dir */
|
||||||
chdir(argv[3]);
|
chdir(argv[3]);
|
||||||
@@ -25,6 +25,7 @@ int main(int argc, char *argv[])
|
|||||||
"OpenRA.Game.exe",
|
"OpenRA.Game.exe",
|
||||||
argv[5],
|
argv[5],
|
||||||
argv[6],
|
argv[6],
|
||||||
|
argv[7],
|
||||||
NULL
|
NULL
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user