Skip to content

Commit

Permalink
Added fixes for A Hat in Time and Rise of Nations from #24
Browse files Browse the repository at this point in the history
  • Loading branch information
simons-public committed Oct 22, 2018
1 parent d30cbda commit 400b0ab
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 2 deletions.
2 changes: 0 additions & 2 deletions protonfixes/debug.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,7 @@ def show_debug_info():
ignorevars = [
'SteamUser',
'OLDPWD',
'SDL_GAMECONTROLLERCONFIG',
'SteamAppUser',
'SDL_GAMECONTROLLER_IGNORE_DEVICES',
'LS_COLORS',
]

Expand Down
13 changes: 13 additions & 0 deletions protonfixes/gamefixes/253230.py
Original file line number Diff line number Diff line change
@@ -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')
29 changes: 29 additions & 0 deletions protonfixes/gamefixes/287450.py
Original file line number Diff line number Diff line change
@@ -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')
2 changes: 2 additions & 0 deletions protonfixes/splash.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
""" Splash screen for protonfixes using cefpython
"""
import os
import sys
import time
import subprocess
from multiprocessing import Process
Expand Down Expand Up @@ -29,6 +30,7 @@ def browser(cef, url):
'disable-gpu-compositing': '',
}

sys.excepthook = cef.ExceptHook
cef.Initialize(settings, switches)

win_info = cef.WindowInfo()
Expand Down

0 comments on commit 400b0ab

Please sign in to comment.