Accidently added a file that wasn't ready. Removed now.
This commit is contained in:
1 parent
2c4f0759ad
commit
a2a3972f12
1 file changed
-44
@@ -1,44 +0,0 @@
|
||||
# shellcheck shell=bash disable=SC2154 # AGM supplies cache and game.
|
||||
export WINEARCH=win64
|
||||
export winVer="win10"
|
||||
|
||||
install_wine_bottle
|
||||
kotorGameDir="${WINEPREFIX}/drive_c/Program Files/${game}"
|
||||
if [[ ! -f "${kotorGameDir}/swkotor.exe" ]]; then
|
||||
get_steam "32370" "https://store.steampowered.com/app/32370/STAR_WARS_Knights_of_the_Old_Republic/"
|
||||
fi
|
||||
if [[ ! -f "${kotorGameDir}/swkotor.exe" ]]; then
|
||||
alert "$game" "The Windows game executable was not found at ${kotorGameDir}/swkotor.exe. Install your own Steam or GOG game files there, then try again."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
kotorModVersion="v0.9.1"
|
||||
kotorModHash="7cfe338c61571535ef0007d486883779c61cd4aac69ec782dbf8af77ae10c714"
|
||||
kotorModUrl="https://github.com/JeanStiletto/voice-of-the-old-republic/releases/download/${kotorModVersion}/VoiceOfTheOldRepublicInstaller.exe"
|
||||
if ! download "$kotorModUrl"; then
|
||||
exit 1
|
||||
fi
|
||||
kotorModFile="${cache}/VoiceOfTheOldRepublicInstaller.exe"
|
||||
kotorDownloadedHash="$(sha256sum "$kotorModFile")" || exit 1
|
||||
if [[ "${kotorDownloadedHash%% *}" != "$kotorModHash" ]]; then
|
||||
alert "$game" "The accessibility mod installer failed its published SHA-256 check. Remove the cached installer and try again."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if ! kotorWindowsDir="$(winepath -w "$kotorGameDir")"; then
|
||||
alert "$game" "Could not convert the game folder to a Windows path."
|
||||
exit 1
|
||||
fi
|
||||
alert "$game" "The Voice of the Old Republic installer will open. Choose KOTOR 1 and complete its installation. Do not launch the game from the installer's final screen; use Audiogame Manager after it closes. This upstream installer targets Windows, so its Wine behavior is still being tested."
|
||||
if ! wine "$kotorModFile" --game k1 "$kotorWindowsDir"; then
|
||||
alert "$game" "The accessibility mod installer failed. Check its log before trying again."
|
||||
exit 1
|
||||
fi
|
||||
if [[ ! -f "${kotorGameDir}/patches/accessibility.dll" ||
|
||||
! -f "${kotorGameDir}/patches/prism.dll" ||
|
||||
! -f "${kotorGameDir}/dinput8.dll" ]]; then
|
||||
alert "$game" "The accessibility patch files were not installed. Audiogame Manager did not add a launcher."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
add_launcher 'c:\Program Files\Knights of the Old Republic\swkotor.exe' 'export WINEDLLOVERRIDES=dinput8=n,b'
|
||||
Reference in new issue
Block a user