diff --git a/protonfixes/debug.py b/protonfixes/debug.py index 6054a5dd..57148dcc 100644 --- a/protonfixes/debug.py +++ b/protonfixes/debug.py @@ -47,9 +47,7 @@ def show_debug_info(): ignorevars = [ 'SteamUser', 'OLDPWD', - 'SDL_GAMECONTROLLERCONFIG', 'SteamAppUser', - 'SDL_GAMECONTROLLER_IGNORE_DEVICES', 'LS_COLORS', ] diff --git a/protonfixes/gamefixes/253230.py b/protonfixes/gamefixes/253230.py new file mode 100644 index 00000000..88661b47 --- /dev/null +++ b/protonfixes/gamefixes/253230.py @@ -0,0 +1,13 @@ +""" Game fix for A Hat in Time +Source: https://github.com/ValveSoftware/Proton/issues/173 +""" + +#pylint: disable=C0103 + +from protonfixes import util + +def main(): + """ Installs xact + """ + + util.protontricks('xact') diff --git a/protonfixes/gamefixes/287450.py b/protonfixes/gamefixes/287450.py new file mode 100644 index 00000000..b94a250e --- /dev/null +++ b/protonfixes/gamefixes/287450.py @@ -0,0 +1,29 @@ +""" Game fix for Rise of Nations: Extended Edition +Source: https://github.com/simons-public/protonfixes/issues/24#issue-372384148 +""" + +#pylint: disable=C0103 + +from protonfixes import util + +def main(): + """ Installs crypt32 and and bypasses launcher + """ + + # Install crypt32 (not required for Proton 3.16-3 and up) + util.protontricks('crypt32') + + # Install directmusic, set overrides + util.protontricks('directmusic') + util.winedll_override('dmime', 'n') + util.winedll_override('dmsynth', 'n') + util.winedll_override('dmusic', 'n') + util.winedll_override('dsound', 'n') + util.winedll_override('dswave ', 'n') + util.winedll_override('l3codecx', 'n') + + # Set sound to alsa + util.protontricks('sound=alsa') + + # Disable launcher + util.replace_command('patriots.exe', 'riseofnations.exe') diff --git a/protonfixes/splash.py b/protonfixes/splash.py index 85fdfe36..7e14ef6d 100644 --- a/protonfixes/splash.py +++ b/protonfixes/splash.py @@ -1,6 +1,7 @@ """ Splash screen for protonfixes using cefpython """ import os +import sys import time import subprocess from multiprocessing import Process @@ -29,6 +30,7 @@ def browser(cef, url): 'disable-gpu-compositing': '', } + sys.excepthook = cef.ExceptHook cef.Initialize(settings, switches) win_info = cef.WindowInfo()