Skip to content

Commit

Permalink
Improve detection of DOSBox games, also removing exception for Shadow…
Browse files Browse the repository at this point in the history
… Warrior Classic Complete
  • Loading branch information
sigboe committed Mar 3, 2019
1 parent 36c7647 commit 411e2e7
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
8 changes: 0 additions & 8 deletions exceptions
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ exceptionList=(
1435827232 #Ultimate DOOM, The
1207658753 #Teenagent
1885026907 #Escape from Monkey Island
1207659142 #Shadow Warrior Complete
)

1435827232_exception() { #Ultimate DOOM, The
Expand Down Expand Up @@ -64,10 +63,3 @@ _EOF_
)
_msgbox "${gameName} Has been installed to ${romdir}/"
}

1207659142_exception() { #Shadow Warrior Complete
mv -f "${tmpdir}/${gameName}" "${dosboxdir}/${gameName}" || { _error "Uname to copy game to ${dosboxdir}\n\nThis is likely due to DOSBox not being installed."; return; }
cd "${romdir}/pc" || _error "unable to access ${romdir}/pc\nFailed to create launcher."
ln -s "${scriptdir}/dosbox-launcher.sh" "${gameName}.sh" || _error "Failed to create launcher."
_msgbox "GOG.com game ID: ${gameID}\n$(basename "${fileSelected}") was extracted and installed to ${dosboxdir}" --title "${gameName} was installed."
}
2 changes: 1 addition & 1 deletion pie-galaxy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ _getType() {
local gamePath type
gamePath=$(cat "${tmpdir}/${1}/"goggame-*.info | jq --raw-output '.playTasks[] | select(.isPrimary==true) | .path')

if [[ "${gamePath}" == *"DOSBOX"* ]]; then
if [[ "${gamePath}" == *"DOSBOX"* ]] || [[ -d "${tmpdir}/${1}/DOSBOX" ]]; then
type="dosbox"
elif [[ "${gamePath}" == *"scummvm"* ]]; then
type="scummvm"
Expand Down

0 comments on commit 411e2e7

Please sign in to comment.