I forgot to push changes, and it's been a while. I'm pretty sure this is game fixes.
This commit is contained in:
@@ -23,6 +23,10 @@ printf '%s|%s|%s|%s\n' "$WINEPREFIX" "$GAMEID" "${STORE:-}" "$*" >> "$UMU_STUB_L
|
||||
if [[ "${1:-}" == "" ]]; then
|
||||
mkdir -p "$WINEPREFIX/drive_c"
|
||||
fi
|
||||
if [[ "${1:-}" == "winetricks" && "${3:-}" == "already-installed" ]]; then
|
||||
printf "winetricks verb 'already-installed' is already installed\n" >&2
|
||||
exit 1
|
||||
fi
|
||||
STUB
|
||||
chmod +x "${testRoot}/bin/umu-run"
|
||||
|
||||
@@ -90,6 +94,13 @@ test_add_umu_launcher_records_backend_and_game_id() {
|
||||
assert_file_contains "$configFile" 'umu|c:\Program Files (x86)\GalaxyLaboratory\ShadowRine_FullVoice\play_sr.exe|Shadow Line|export umuGameId=shadow-line' "UMU launcher entry is recorded"
|
||||
}
|
||||
|
||||
test_add_umu_launcher_records_extra_environment_flags() {
|
||||
get_umu_bottle "entombed"
|
||||
game="Entombed"
|
||||
add_umu_launcher "entombed" 'c:\Program Files (x86)\Entombed\Entombed.exe' "export PROTON_USE_XALIA=0"
|
||||
assert_file_contains "$configFile" 'umu|c:\Program Files (x86)\Entombed\Entombed.exe|Entombed|export umuGameId=entombed|export PROTON_USE_XALIA=0' "UMU launcher entry records extra environment flags"
|
||||
}
|
||||
|
||||
test_run_umu_game_uses_converted_path() {
|
||||
get_umu_bottle "shadow-line"
|
||||
mkdir -p "${WINEPREFIX}/drive_c/Program Files (x86)/GalaxyLaboratory/ShadowRine_FullVoice"
|
||||
@@ -113,8 +124,16 @@ test_install_crlf_file_normalizes_line_endings() {
|
||||
fi
|
||||
}
|
||||
|
||||
test_install_proton_winetricks_verb_ignores_already_installed() {
|
||||
get_umu_bottle "shadow-line"
|
||||
|
||||
install_proton_winetricks_verb "already-installed"
|
||||
}
|
||||
|
||||
test_get_umu_bottle_sets_environment
|
||||
test_add_umu_launcher_records_backend_and_game_id
|
||||
test_add_umu_launcher_records_extra_environment_flags
|
||||
test_run_umu_game_uses_converted_path
|
||||
test_install_crlf_file_normalizes_line_endings
|
||||
test_install_proton_winetricks_verb_ignores_already_installed
|
||||
printf 'UMU backend tests passed\n'
|
||||
|
||||
Reference in New Issue
Block a user