Skip to content

Commit

Permalink
383
Browse files Browse the repository at this point in the history
  • Loading branch information
RusNor committed Nov 24, 2023
1 parent 1681a80 commit db488f7
Show file tree
Hide file tree
Showing 8 changed files with 48 additions and 37 deletions.
Binary file added data/app_patches/DeadSpace2_patch.reg
Binary file not shown.
Binary file modified data/scripts/locale/en/LC_MESSAGES/StartWine.mo
Binary file not shown.
3 changes: 3 additions & 0 deletions data/scripts/locale/en/LC_MESSAGES/en.po
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,9 @@ msgstr "Create a prefix for this application?"
msgid "Restore prefix from backup?"
msgstr "Restore prefix from backup?"

msgid "Do you really want to reinstall the prefix?"
msgstr "Do you really want to reinstall the prefix?"

#: sw_runlib:1006 sw_runlib:1181
#, sh-format
msgid "Restore prefix completed successfully"
Expand Down
Binary file modified data/scripts/locale/ru/LC_MESSAGES/StartWine.mo
Binary file not shown.
3 changes: 3 additions & 0 deletions data/scripts/locale/ru/LC_MESSAGES/ru.po
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,9 @@ msgstr "Создать префикс для этого приложения?"
msgid "Restore prefix from backup?"
msgstr "Восстановить префикс из резервной копии?"

msgid "Do you really want to reinstall the prefix?"
msgstr "Действительно переустановить префикс?"

#: sw_runlib:1006 sw_runlib:1181
#, sh-format
msgid "Restore prefix completed successfully"
Expand Down
2 changes: 1 addition & 1 deletion data/scripts/sw_main
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env python3

################################___SCRIPTS_V382___:
################################___SCRIPTS_V383___:

import os
import sys
Expand Down
2 changes: 1 addition & 1 deletion data/scripts/sw_menu.glade
Original file line number Diff line number Diff line change
Expand Up @@ -5619,7 +5619,7 @@ Example: -d3d11</property>
<property name="can-focus">False</property>
<property name="label" translatable="yes">
StartWine
3.8.2</property>
3.8.3</property>
<property name="justify">center</property>
<attributes>
<attribute name="underline" value="True"/>
Expand Down
75 changes: 40 additions & 35 deletions data/scripts/sw_runlib
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ export START_WINE_PATH="$(pwd)"

############################### VERSION ####################################

export SW_VER="382"
export GE_VER="8-23"
export SW_VER="383"
export GE_VER="8-25"
export SP_VER="8.0.4"
export STAG_VER="8.19"
export STAG_VER="8.20"
export LUTRIS_VER="7.2-2"
export LUTRIS_GE_VER="8-22"
export LUTRIS_GE_VER="8-24"
export UTILS_VER="v2.3"

##############################...LOCALE...######################################
Expand Down Expand Up @@ -171,7 +171,7 @@ try_clear_pfx () {
try_remove "${START_WINE_PATH}/data/tmp/vkd3d_cache/"*
try_remove "${START_WINE_PATH}/data/tmp/gstreamer-1.0/"*
try_remove "$HOME/.cache/gstreamer-1.0/"*
try_remove "${START_WINE_PATH}/data/tmp/mesa_shader_cache/"*
try_remove "${START_WINE_PATH}/data/tmp/mesa_shader_cache_sf/"*

}

Expand Down Expand Up @@ -299,7 +299,7 @@ sw_shortcuts_autoinstall () {
export SW_GAME_NAME="$(basename "${SW_GAME_EXE}" | sed 's/\.exe//gi' | sed 's/\.msi//gi' | sed 's/ /_/g')"
export SW_GAME_PATH="$(cd "$(dirname "${SW_GAME_EXE}")" >/dev/null 2>&1 && pwd)"

export SW_ICO_TMP_PATH="${START_WINE_PATH}/data/tmp/icon"
export SW_ICO_TMP_PATH="${START_WINE_PATH}/data/tmp/icons"
icoextract "${SW_GAME_EXE}" "${SW_ICO_TMP_PATH}/${SW_GAME_NAME}.ico"
convert "${SW_ICO_TMP_PATH}/${SW_GAME_NAME}.ico" "${SW_ICO_TMP_PATH}/${SW_GAME_NAME}.png"

Expand Down Expand Up @@ -436,7 +436,7 @@ try_create_dir "${START_WINE_PATH}/data/tmp"
try_create_dir "${START_WINE_PATH}/Shortcuts"
try_create_dir "${START_WINE_PATH}/data/tools"
try_create_dir "${START_WINE_PATH}/data/tmp/log"
try_create_dir "${START_WINE_PATH}/data/tmp/icon"
try_create_dir "${START_WINE_PATH}/data/tmp/icons"
try_create_dir "${HOME}/.local/share/applications"
try_create_dir "${START_WINE_PATH}/data/pfx_backup"
try_create_dir "${START_WINE_PATH}/data/tmp/vkd3d_cache"
Expand Down Expand Up @@ -639,7 +639,7 @@ if [ "${SW_USE_FSR}" == 1 ]; then
export WINE_FULLSCREEN_FSR=1
export WINE_FULLSCREEN_FSR_STRENGTH=2
export WINE_FULLSCREEN_INTEGER_SCALING=0
export WINE_FULLSCREEN_FSR_MODE="balanced"
export WINE_FULLSCREEN_FSR_MODE="performance"
# ultra
# quality
# balanced
Expand All @@ -652,8 +652,8 @@ if [ "${SW_USE_GSTREAMER}" == 1 ]; then
export GST_DEBUG="0:WARNING"
export WINE_GST_REGISTRY_DIR="${START_WINE_PATH}/data/tmp/gstreamer-1.0"
export MEDIACONV_AUDIO_DUMP_FILE="${START_WINE_PATH}/data/tmp/gstreamer-1.0/audio.foz"
export MEDIACONV_AUDIO_TRANSCODED_FILE="${START_WINE_PATH}/data/tmp/gstreamer-1.0/transcoded_audio.foz"
export MEDIACONV_VIDEO_DUMP_FILE="${START_WINE_PATH}/data/tmp/gstreamer-1.0/video.foz"
export MEDIACONV_AUDIO_TRANSCODED_FILE="${START_WINE_PATH}/data/tmp/gstreamer-1.0/transcoded_audio.foz"
export MEDIACONV_VIDEO_TRANSCODED_FILE="${START_WINE_PATH}/data/tmp/gstreamer-1.0/transcoded_video.foz"

if [ "${SW_USE_WINE}" != "wine_staging" ] && [ "${SW_USE_WINE}" != "wine_lutris_ge" ]; then
Expand Down Expand Up @@ -1086,7 +1086,7 @@ RUN_VULKAN () {
CREATE_ICON () {

if [ ! -f "${START_WINE_PATH}/data/img/${SW_GAME_NAME}_x96.png" ]; then
export SW_ICO_TMP_PATH="${START_WINE_PATH}/data/tmp/icon"
export SW_ICO_TMP_PATH="${START_WINE_PATH}/data/tmp/icons"
icoextract "${SW_GAME_EXE}" "${SW_ICO_TMP_PATH}/${SW_GAME_NAME}.ico"
convert "${SW_ICO_TMP_PATH}/${SW_GAME_NAME}.ico" "${SW_ICO_TMP_PATH}/${SW_GAME_NAME}.png"

Expand Down Expand Up @@ -1287,50 +1287,55 @@ REINSTALL_PFX () {
crier=`$CRIER -i "$(eval_gettext "Path not exist, try to create new shortcut")"`
exit 0
else
if [ ! -f "${START_WINE_PATH}/data/pfx_backup/${SW_USE_PFX}.iso" ]; then
crier=`$CRIER -q "$(eval_gettext "Do you really want to reinstall the prefix?")"`

crier=`$CRIER -q "$(eval_gettext "Remove old prefix?")"`
if [ "$(echo $crier)" == "0" ]; then

if [ "$(echo $crier)" == "0" ]; then
if [ ! -f "${START_WINE_PATH}/data/pfx_backup/${SW_USE_PFX}.iso" ]; then

try_remove "${START_WINE_PATH}/data/pfx/${SW_USE_PFX}"
crier=`$CRIER -q "$(eval_gettext "Remove old prefix?")"`

export REIN_PFX=1
if [ "$(echo $crier)" == "0" ]; then

WINEBOOT_CS
try_remove "${START_WINE_PATH}/data/pfx/${SW_USE_PFX}"

fi
export REIN_PFX=1

else
WINEBOOT_CS

if [ "${SW_GAME_NAME}" != "" ];then
fi

crier=`$CRIER -q "$(eval_gettext "Restore prefix from backup?")"`
else

if [ "$(echo $crier)" == "0" ]; then
if [ "${SW_GAME_NAME}" != "" ]; then

try_remove "${START_WINE_PATH}/data/pfx/${SW_USE_PFX}"
unsquashfs -d "${START_WINE_PATH}/data/pfx/${SW_USE_PFX}" "${START_WINE_PATH}/data/pfx_backup/${SW_USE_PFX}.iso" &&
try_copy "${START_WINE_PATH}/data/pfx/${SW_USE_PFX}/${SW_GAME_NAME}" "${START_WINE_PATH}/data/app_config"
crier=`$CRIER -q "$(eval_gettext "Restore prefix from backup?")"`

if [ -f "${START_WINE_PATH}/data/pfx/${SW_USE_PFX}/${SW_GAME_NAME}" ];then
try_remove "${START_WINE_PATH}/data/pfx/${SW_USE_PFX}/${SW_GAME_NAME}"
fi
if [ "$(echo $crier)" == "0" ]; then

crier=`$CRIER -i "$(eval_gettext "Restore prefix completed successfully")"`
try_remove "${START_WINE_PATH}/data/pfx/${SW_USE_PFX}"
unsquashfs -d "${START_WINE_PATH}/data/pfx/${SW_USE_PFX}" "${START_WINE_PATH}/data/pfx_backup/${SW_USE_PFX}.iso" &&
try_copy "${START_WINE_PATH}/data/pfx/${SW_USE_PFX}/${SW_GAME_NAME}" "${START_WINE_PATH}/data/app_config"

else
if [ -f "${START_WINE_PATH}/data/pfx/${SW_USE_PFX}/${SW_GAME_NAME}" ]; then
try_remove "${START_WINE_PATH}/data/pfx/${SW_USE_PFX}/${SW_GAME_NAME}"
fi

crier=`$CRIER -q "$(eval_gettext "Remove old prefix?")"`
crier=`$CRIER -i "$(eval_gettext "Restore prefix completed successfully")"`

if [ "$(echo $crier)" == "0" ]; then
else

try_remove "${START_WINE_PATH}/data/pfx/${SW_USE_PFX}"
crier=`$CRIER -q "$(eval_gettext "Remove old prefix?")"`

if [ "$(echo $crier)" == "0" ]; then

try_remove "${START_WINE_PATH}/data/pfx/${SW_USE_PFX}"

export REIN_PFX=1
export REIN_PFX=1

WINEBOOT_CS
WINEBOOT_CS

fi
fi
fi
fi
Expand Down Expand Up @@ -1601,7 +1606,7 @@ INSTALL_RL () {
vcrun2012 vcrun2013 vcrun2022 vcrun6 vcrun6sp6 lucida nocrashdialog || libraries_init_error
"${WINESERVER}" -w

if [ ! -f "${START_WINE_PATH}/data/pfx/${SW_USE_PFX}/btn.log" ];then
if [ ! -f "${START_WINE_PATH}/data/pfx/${SW_USE_PFX}/btn.log" ]; then
for btn_log in 207 210 228 240 270 272 273 274 275 276 279 281 280 ; do
echo "${btn_log}" >> "${START_WINE_PATH}/data/pfx/${SW_USE_PFX}/btn.log"
done
Expand Down

0 comments on commit db488f7

Please sign in to comment.