From 513769f131bb13f1b261a5aa54dfd50787818d37 Mon Sep 17 00:00:00 2001 From: Paul Chote Date: Thu, 8 Jul 2010 12:31:04 +1200 Subject: [PATCH] Remove the need for a trailing separator --- OpenRA.Game/Game.cs | 2 +- packaging/osx/OpenRA.app/Contents/MacOS/OpenRA | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/OpenRA.Game/Game.cs b/OpenRA.Game/Game.cs index 25d625d29c..f978267b66 100644 --- a/OpenRA.Game/Game.cs +++ b/OpenRA.Game/Game.cs @@ -652,7 +652,7 @@ namespace OpenRA return Environment.CurrentDirectory + Path.DirectorySeparatorChar + "Support" + Path.DirectorySeparatorChar; // Custom paths are relative to the home directory (My Documents under windows) - return Environment.GetFolderPath(Environment.SpecialFolder.Personal) + Path.DirectorySeparatorChar + Settings.SupportDir; + return Environment.GetFolderPath(Environment.SpecialFolder.Personal) + Path.DirectorySeparatorChar + Settings.SupportDir + Path.DirectorySeparatorChar; } } diff --git a/packaging/osx/OpenRA.app/Contents/MacOS/OpenRA b/packaging/osx/OpenRA.app/Contents/MacOS/OpenRA index c13cf790fc..5760d7c161 100755 --- a/packaging/osx/OpenRA.app/Contents/MacOS/OpenRA +++ b/packaging/osx/OpenRA.app/Contents/MacOS/OpenRA @@ -86,7 +86,7 @@ fi # Run the game cd "${GAME_PATH}" -${EXE_PATH}mono "OpenRA.Game.exe" InitialMods=$MOD SupportDir=Library/"Application Support"/OpenRA/ +${EXE_PATH}mono "OpenRA.Game.exe" InitialMods=$MOD SupportDir=Library/"Application Support"/OpenRA # Did we crash? STATUS=$?