Merge branch 'steamPlay' of github.com:alex2844/PortWINE into alex2844-steamPlay
This commit is contained in:
@ -2903,10 +2903,12 @@ edit_db_from_gui () {
|
||||
then
|
||||
for mod_db in "$@" ; do
|
||||
proxy_mod_db="${!mod_db}"
|
||||
if [[ $proxy_mod_db =~ (${translations[Disabled]}|${translations[Disable]}) ]] ; then
|
||||
proxy_mod_db=disabled
|
||||
elif [[ $proxy_mod_db =~ (${translations[Enabled]}|${translations[Enable]}) ]] ; then
|
||||
proxy_mod_db=enabled
|
||||
if (( ${#translations[@]} > 0 )); then
|
||||
if [[ $proxy_mod_db =~ (${translations[Disabled]}|${translations[Disable]}) ]] ; then
|
||||
proxy_mod_db=disabled
|
||||
elif [[ $proxy_mod_db =~ (${translations[Enabled]}|${translations[Enable]}) ]] ; then
|
||||
proxy_mod_db=enabled
|
||||
fi
|
||||
fi
|
||||
|
||||
# Escaping backslashes and quotes for Windows paths
|
||||
@ -4395,6 +4397,35 @@ pw_yad_form_vulkan () {
|
||||
fi
|
||||
}
|
||||
|
||||
steamplay_launch () {
|
||||
if [[ -n "${portwine_exe:-}" ]]; then
|
||||
cd "$(dirname "${portwine_exe}")"
|
||||
export PORTWINE_DB_FILE="${portwine_exe}.ppdb"
|
||||
[[ -f "${PORTWINE_DB_FILE}" ]] && source "${PORTWINE_DB_FILE}"
|
||||
PORT_WINE_PREFIX="${PORT_WINE_PATH}/data/prefixes/${PW_PREFIX_NAME:-DEFAULT}"
|
||||
for path in "ProgramData" "users/Public" "users/steamuser"; do
|
||||
mkdir -p "${PORT_WINE_PREFIX}/drive_c/${path}"
|
||||
if [[ ! -L "${WINEPREFIX}/drive_c/${path}" ]]; then
|
||||
mkdir -p "${WINEPREFIX}/drive_c/users/"
|
||||
rm -rf "${WINEPREFIX}/drive_c/${path}"
|
||||
ln -sr "${PORT_WINE_PREFIX}/drive_c/${path}" "${WINEPREFIX}/drive_c/${path}"
|
||||
fi
|
||||
done
|
||||
if [[ -n "${PW_DLL_INSTALL:-}" ]] ; then
|
||||
update_winetricks
|
||||
PATH="${PATH}:${PW_PLUGINS_PATH}/portable/bin" LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:${PW_PLUGINS_PATH}/portable/lib/lib64:${PW_PLUGINS_PATH}/portable/lib/lib32" \
|
||||
"${PORT_WINE_TMP_PATH}/winetricks" -q ${PW_DLL_INSTALL}
|
||||
fi
|
||||
[[ $PW_LOG != 1 ]] && debug_timer --start -s "PW_TIME_IN_GAME"
|
||||
"${STEAM_COMPAT_TOOL_PATHS%%:*}/proton" "run" "${portwine_exe}" "$@"
|
||||
if [[ $PW_LOG != 1 ]] && [[ -n $START_PW_TIME_IN_GAME ]] ; then
|
||||
debug_timer --end -s "PW_TIME_IN_GAME"
|
||||
PW_TIME_IN_GAME=$(( PW_TIME_IN_GAME / 1000 ))
|
||||
search_desktop_file
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
portwine_launch () {
|
||||
start_portwine
|
||||
unset PW_VD_TMP
|
||||
|
Reference in New Issue
Block a user