Skip to content

Commit

Permalink
v382
Browse files Browse the repository at this point in the history
  • Loading branch information
RusNor committed Nov 11, 2023
1 parent c1dc78c commit 1681a80
Show file tree
Hide file tree
Showing 14 changed files with 375 additions and 257 deletions.
File renamed without changes.
Binary file added data/app_patches/Dungeon_Siege2_patch.reg
Binary file not shown.
Binary file added data/app_patches/Red_Alert_3_Uprising_patch.reg
Binary file not shown.
Binary file added data/app_patches/StarCraft_patch.reg
Binary file not shown.
16 changes: 16 additions & 0 deletions data/app_patches/The_Witcher_patch.reg
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\Software\Wow6432Node\CD Projekt Red]

[HKEY_LOCAL_MACHINE\Software\Wow6432Node\CD Projekt Red\The Witcher]
"InstallFolder"="C:\\Games\\The Witcher.Gold Edition.v 1.5.0.1304 + 8 DLC"
"IsDjinniInstalled"=dword:00000001
"Language"="14"
"RegionVersion"=""

[HKEY_LOCAL_MACHINE\Software\Wow6432Node\1C]

[HKEY_LOCAL_MACHINE\Software\Wow6432Node\1C\{EE7C4A60-4568-459E-BDDB-D3100BF2BC1C}]
"AppFile"="C:\\Games\\The Witcher.Gold Edition.v 1.5.0.1304 + 8 DLC\\launcher.exe"
"AppVersion"="1.5.0.1304"
"InstallFlag"=dword:00000001
Binary file modified data/scripts/locale/en/LC_MESSAGES/StartWine.mo
Binary file not shown.
5 changes: 5 additions & 0 deletions data/scripts/locale/en/LC_MESSAGES/en.po
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,11 @@ msgstr "OpenGL mode"
msgid "VULKAN mode"
msgstr "VULKAN mode"

#: sw_runlib
msgid "Path not exist, try to create new shortcut"
msgstr "Path not exist, try to create new shortcut"

#: sw_runlib
msgid "Do you have a prefix for this application to use it?"
msgstr "Do you have a prefix for this application to use it?"

Expand Down
Binary file modified data/scripts/locale/ru/LC_MESSAGES/StartWine.mo
Binary file not shown.
4 changes: 4 additions & 0 deletions data/scripts/locale/ru/LC_MESSAGES/ru.po
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,10 @@ msgstr "режим OpenGL"
msgid "VULKAN mode"
msgstr "режим Vulkan"

#: sw_runlib
msgid "Path not exist, try to create new shortcut"
msgstr "Путь не существует, попробуйте создать новый ярлык"

#: sw_runlib
msgid "Do you have a prefix for this application to use it?"
msgstr "Использовать для этого приложения существующий префикс?"
Expand Down
18 changes: 9 additions & 9 deletions data/scripts/sw_deps
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ if [ -x "$(command -v nala)" ]; then
sudo dpkg --add-architecture i386 2>/dev/null || echo 'Pass' &&
sudo nala update 2>/dev/null || echo 'Passed' &&

for deps in zstd imagemagick vulkan-tools wine xdg-user-dirs gir1.2-vte-2.91 htop python3-gi-cairo python3-opengl python3-numpy python3-pil python3-six ; do
for deps in zstd imagemagick vulkan-tools wine xdg-user-dirs gir1.2-vte-2.91 htop python3-xlib python3-gi-cairo python3-opengl python3-numpy python3-pil python3-six ; do

if [ "`sudo nala list --installed $deps 2>/dev/null | grep $deps`" == "" ]; then
sudo nala install $deps -y || echo "$deps __________Passed"
Expand All @@ -30,7 +30,7 @@ elif [ -x "$(command -v apt)" ]; then
sudo dpkg --add-architecture i386 2>/dev/null || echo 'Pass' &&
sudo apt update -y 2>/dev/null || echo 'Passed' &&

for deps in zstd imagemagick vulkan-tools wine xdg-user-dirs gir1.2-vte-2.91 htop python3-gi-cairo python3-opengl python3-numpy python3-pil python3-six ; do
for deps in zstd imagemagick vulkan-tools wine xdg-user-dirs gir1.2-vte-2.91 htop python3-xlib python3-gi-cairo python3-opengl python3-numpy python3-pil python3-six ; do

if [ "`sudo apt list --installed $deps 2>/dev/null | cut -d '/' -f1 | tail -n1`" != "$deps" ]; then
sudo apt install $deps -y 2>/dev/null || echo "$deps __________Passed"
Expand All @@ -46,7 +46,7 @@ elif [ -x "$(command -v epm)" ]; then

sudo epmu -y 2>/dev/null || echo 'Passed' &&

for deps in zstd squashfuse ImageMagick vulkan-tools i586-wine xdg-user-dirs vte3 libvte3-gir libgtk+3-gir htop \
for deps in zstd squashfuse ImageMagick vulkan-tools i586-wine xdg-user-dirs vte3 libvte3-gir libgtk+3-gir htop python3-xlib \
python3-module-pefile python3-module-cairocffi python3-module-OpenGL python3-module-numpy python3-module-Pillow python3-module-six ; do

if [ "`sudo epm list --installed $deps 2>/dev/null | grep $deps`" == "" ]; then
Expand All @@ -63,7 +63,7 @@ elif [ -x "$(command -v eopkg)" ]; then

sudo eopkg ur -y 2>/dev/null || echo 'Passed' &&

for deps in zstd squashfuse imagemagick vulkan-tools wine wine-32bit xdg-user-dirs libvte htop python-cairo python-opengl python-numexpr python-pillow python-six ; do
for deps in zstd squashfuse imagemagick vulkan-tools wine wine-32bit xdg-user-dirs libvte htop python-xlib python-cairo python-opengl python-numexpr python-pillow python-six ; do

if [ "`sudo eopkg li $deps 2>/dev/null | cut -d '/' -f1 | tail -n1`" != "$deps" ]; then
sudo eopkg it $deps -y 2>/dev/null || echo "$deps __________Passed"
Expand All @@ -83,7 +83,7 @@ elif [ -x "$(command -v dnf)" ]; then
echo " wine ________________________________package is already installed"
fi

for deps in zstd ImageMagick vulkan-tools xdg-user-dirs ibus-gtk2.i686 htop python3-gobject rubygem-vte3 python3-cairo python3-pyopengl python3-numpy \
for deps in zstd ImageMagick vulkan-tools xdg-user-dirs ibus-gtk2.i686 htop python3-xlib python3-gobject rubygem-vte3 python3-cairo python3-pyopengl python3-numpy \
python3-pillow python3-six lib64vte-gir2.91.x86_64 libvte-gir2.91.i686 vte291.x86_64 vte291.i686 ; do

if [ "`sudo dnf list $deps | grep @`" == "" ]; then
Expand All @@ -100,7 +100,7 @@ elif [ -x "$(command -v zypper)" ]; then

sudo zypper ref || echo 'Passed' &&

for deps in zstd ImageMagick vulkan-tools xdg-user-dirs wine typelib-1_0-Vte-2_91 vte-tools libvte-2_91-0 python310-gobject-Gdk python310-matplotlib-gtk3 \
for deps in zstd ImageMagick vulkan-tools xdg-user-dirs wine typelib-1_0-Vte-2_91 vte-tools libvte-2_91-0 python310-xlib python310-gobject-Gdk python310-matplotlib-gtk3 \
python310-gobject-cairo python310-opengl python310-numpy python310-Pillow python310-six ; do

if [ "`sudo zypper search -i $deps | grep $deps`" == "" ]; then
Expand All @@ -117,7 +117,7 @@ elif [ -x "$(command -v pacman)" ]; then

sudo pacman -Sy -y || echo 'Passed' &&

for deps in zstd imagemagick vulkan-tools xdg-user-dirs htop vte3 python-gobject python-cairo python-opengl python-pillow python-numpy python-six ; do
for deps in zstd imagemagick vulkan-tools xdg-user-dirs htop vte3 python-xlib python-gobject python-cairo python-opengl python-pillow python-numpy python-six ; do

if [ "`pacman -Qs $deps | grep -w $deps | tail -n1`" == "" ]; then
sudo pacman -S $deps --noconfirm || echo "$deps _______________Passed"
Expand All @@ -139,7 +139,7 @@ elif [ -x "$(command -v xbps-install)" ]; then

sudo xbps-install -S || echo 'Passed' &&

for deps in zstd ImageMagick Vulkan-Tools xdg-user-dirs wine wine-32bit htop python3-cairo python3-PyOpenGL python3-numpy python3-Pillow python3-six ; do
for deps in zstd ImageMagick Vulkan-Tools xdg-user-dirs wine wine-32bit htop python3-xlib python3-cairo python3-PyOpenGL python3-numpy python3-Pillow python3-six ; do

if [ "`xbps-query -l | awk '{ print $2 }' | xargs -n1 xbps-uhelper getpkgname | grep -w $deps`" == "" ]; then
sudo xbps-install -y $deps || echo "$deps ______________Passed"
Expand All @@ -156,7 +156,7 @@ elif [ -x "$(command -v emerge)" ]; then
sudo emerge --sync || echo 'Passed' &&

for deps in app-arch/zstd media-gfx/imagemagick dev-util/vulkan-tools app-emulation/wine-vanilla x11-misc/xdg-user-dirs dev-python/pyopengl gui-libs/vte \
dev-python/numpy dev-python/pycairo dev-python/pillow dev-python/six app-arch/lz4 sys-fs/squashfs-tools sys-fs/squashfuse ; do
dev-python/numpy dev-python/xlib dev-python/pycairo dev-python/pillow dev-python/six app-arch/lz4 sys-fs/squashfs-tools sys-fs/squashfuse ; do

if [ "`qlist -I $deps | grep -w $deps | tail -n1`" == "" ]; then
sudo emerge --noreplace --with-bdeps=y --jobs=2 $deps || echo "$deps ______________Passed"
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_V381___:
################################___SCRIPTS_V382___:

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.1</property>
3.8.2</property>
<property name="justify">center</property>
<attributes>
<attribute name="underline" value="True"/>
Expand Down
20 changes: 20 additions & 0 deletions data/scripts/sw_mh_size
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/usr/bin/env python3

import os

from Xlib import display as xdisplay

try:
mhfratio = int(os.getenv('MANGOHUD_FONT_SIZE_RATION'))
except:
mhfratio = 55

MANGOHUD_FONT_SIZE_RATION = mhfratio

display = xdisplay.Display()
root_screen = display.screen().root

for mon in root_screen.xrandr_get_monitors().monitors:
if mon.primary:
connector = display.get_atom_name(mon.name)
print(int(mon.height_in_pixels / MANGOHUD_FONT_SIZE_RATION))
Loading

0 comments on commit 1681a80

Please sign in to comment.