Don't spam logs and replays all over my home directory kthx.
Logs and replays are written to subdirectories of the "Support" folder. Default location is <game dir>/Support/; Can be overridden on game start.
This commit is contained in:
@@ -86,7 +86,7 @@ fi
|
||||
|
||||
# Run the game
|
||||
cd "${GAME_PATH}"
|
||||
${EXE_PATH}mono "OpenRA.Game.exe" InitialMods=$MOD
|
||||
${EXE_PATH}mono "OpenRA.Game.exe" InitialMods=$MOD SupportDir=Library/"Application Support"/OpenRA/
|
||||
|
||||
# Did we crash?
|
||||
STATUS=$?
|
||||
|
||||
@@ -36,11 +36,11 @@ fi
|
||||
cd "$SUPPORT_PATH"
|
||||
mkdir -p "${2}"
|
||||
|
||||
if [ -e "downloads/${1}" ]; then
|
||||
if [ -e "Downloads/${1}" ]; then
|
||||
/usr/bin/osascript << EOT
|
||||
tell application "Terminal"
|
||||
activate
|
||||
do script "cd \"${SUPPORT_PATH}\"; unzip -o \"downloads/${1}\" -d \"${2}\"; touch done; exit;"
|
||||
do script "cd \"${SUPPORT_PATH}\"; unzip -o \"Downloads/${1}\" -d \"${2}\"; touch done; exit;"
|
||||
end tell
|
||||
EOT
|
||||
# Hack around osascript returning before the download finishes
|
||||
@@ -66,7 +66,7 @@ EOT`
|
||||
/usr/bin/osascript << EOT
|
||||
tell application "Terminal"
|
||||
activate
|
||||
do script "cd \"${SUPPORT_PATH}\"; curl --create-dirs -o \"./downloads/${1}\" \"${5}\"; unzip -o \"downloads/${1}\" -d \"${2}\"; touch done; exit;"
|
||||
do script "cd \"${SUPPORT_PATH}\"; curl --create-dirs -o \"./Downloads/${1}\" \"${5}\"; unzip -o \"Downloads/${1}\" -d \"${2}\"; touch done; exit;"
|
||||
end tell
|
||||
EOT
|
||||
# Hack around osascript returning before the download finishes
|
||||
|
||||
Reference in New Issue
Block a user