From aba4cae3c53e8dabffe3e91774bdcfb656d3d38a Mon Sep 17 00:00:00 2001 From: R1kaB3rN <100738684+R1kaB3rN@users.noreply.github.com> Date: Fri, 9 Aug 2024 12:33:00 -0700 Subject: [PATCH] refactor: format gamefix modules through ruff - Enforces single quotes, a line length of 88, and updates the format of comments --- gamefixes-egs/umu-990080.py | 6 +- gamefixes-gog/umu-1228964594.py | 6 +- gamefixes-gog/umu-1564851593.py | 30 +++--- gamefixes-gog/umu-1580232252.py | 6 +- gamefixes-gog/umu-22610.py | 6 +- gamefixes-gog/umu-22650.py | 6 +- gamefixes-gog/umu-22670.py | 6 +- gamefixes-gog/umu-metalgearsolid.py | 5 +- gamefixes-gog/umu-silenthill4.py | 15 ++- gamefixes-gog/umu-wheeloftime.py | 7 +- gamefixes-steam/1017900.py | 9 +- gamefixes-steam/10220.py | 6 +- gamefixes-steam/1030830.py | 9 +- gamefixes-steam/105000.py | 7 +- gamefixes-steam/105400.py | 14 ++- gamefixes-steam/105450.py | 9 +- gamefixes-steam/1056640.py | 8 +- gamefixes-steam/1062040.py | 9 +- gamefixes-steam/1063730.py | 9 +- gamefixes-steam/108710.py | 6 +- gamefixes-steam/1097150.py | 10 +- gamefixes-steam/1097880.py | 6 +- gamefixes-steam/1105510.py | 10 +- gamefixes-steam/110800.py | 10 +- gamefixes-steam/1113000.py | 6 +- gamefixes-steam/1121560.py | 5 +- gamefixes-steam/113400.py | 6 +- gamefixes-steam/1144400.py | 5 +- gamefixes-steam/1151640.py | 8 +- gamefixes-steam/1158850.py | 2 +- gamefixes-steam/1174180.py | 12 +-- gamefixes-steam/1175730.py | 9 +- gamefixes-steam/12210.py | 9 +- gamefixes-steam/1222370.py | 10 +- gamefixes-steam/1222690.py | 12 +-- gamefixes-steam/1230140.py | 9 +- gamefixes-steam/1237970.py | 9 +- gamefixes-steam/1239520.py | 6 +- gamefixes-steam/1240440.py | 6 +- gamefixes-steam/1245620.py | 2 +- gamefixes-steam/1250410.py | 9 +- gamefixes-steam/1257290.py | 5 +- gamefixes-steam/1259970.py | 6 +- gamefixes-steam/1272580.py | 5 +- gamefixes-steam/1277510.py | 6 +- gamefixes-steam/1277930.py | 5 +- gamefixes-steam/12810.py | 8 +- gamefixes-steam/1284210.py | 9 +- gamefixes-steam/1284410.py | 8 +- gamefixes-steam/1286880.py | 9 +- gamefixes-steam/1293820.py | 7 +- gamefixes-steam/1293830.py | 6 +- gamefixes-steam/1382330.py | 5 +- gamefixes-steam/1413480.py | 5 +- gamefixes-steam/1434950.py | 10 +- gamefixes-steam/1449280.py | 9 +- gamefixes-steam/1500540.py | 10 +- gamefixes-steam/15130.py | 17 ++-- gamefixes-steam/1532190.py | 6 +- gamefixes-steam/1557480.py | 9 +- gamefixes-steam/15700.py | 8 +- gamefixes-steam/15740.py | 10 +- gamefixes-steam/15750.py | 8 +- gamefixes-steam/1613450.py | 6 +- gamefixes-steam/1659420.py | 8 +- gamefixes-steam/1664350.py | 9 +- gamefixes-steam/16700.py | 5 +- gamefixes-steam/16810.py | 4 +- gamefixes-steam/1681970.py | 6 +- gamefixes-steam/1695791.py | 6 +- gamefixes-steam/1695793.py | 5 +- gamefixes-steam/1695794.py | 6 +- gamefixes-steam/1711950.py | 8 +- gamefixes-steam/1715130.py | 6 +- gamefixes-steam/17300.py | 9 +- gamefixes-steam/1795390.py | 10 +- gamefixes-steam/1829980.py | 5 +- gamefixes-steam/1873170.py | 12 ++- gamefixes-steam/1930.py | 5 +- gamefixes-steam/19900.py | 7 +- gamefixes-steam/1999770.py | 5 +- gamefixes-steam/200490.py | 5 +- gamefixes-steam/200940.py | 9 +- gamefixes-steam/201480.py | 8 +- gamefixes-steam/204450.py | 9 +- gamefixes-steam/206480.py | 9 +- gamefixes-steam/206500.py | 6 +- gamefixes-steam/207350.py | 6 +- gamefixes-steam/208650.py | 9 +- gamefixes-steam/20920.py | 7 +- gamefixes-steam/211420.py | 12 +-- gamefixes-steam/212500.py | 9 +- gamefixes-steam/213330.py | 9 +- gamefixes-steam/2138090.py | 5 +- gamefixes-steam/214510.py | 9 +- gamefixes-steam/214950.py | 8 +- gamefixes-steam/215280.py | 6 +- gamefixes-steam/21680.py | 9 +- gamefixes-steam/2183070.py | 7 +- gamefixes-steam/219030.py | 6 +- gamefixes-steam/219990.py | 6 +- gamefixes-steam/220240.py | 8 +- gamefixes-steam/2229850.py | 22 ++--- gamefixes-steam/22370.py | 9 +- gamefixes-steam/223750.py | 5 +- gamefixes-steam/224960.py | 6 +- gamefixes-steam/225640.py | 8 +- gamefixes-steam/227320.py | 9 +- gamefixes-steam/230820.py | 7 +- gamefixes-steam/231990.py | 10 +- gamefixes-steam/233270.py | 8 +- gamefixes-steam/23460.py | 13 +-- gamefixes-steam/237890.py | 6 +- gamefixes-steam/2399220.py | 7 +- gamefixes-steam/240600.py | 6 +- gamefixes-steam/242760.py | 9 +- gamefixes-steam/243200.py | 7 +- gamefixes-steam/244210.py | 6 +- gamefixes-steam/244850.py | 7 +- gamefixes-steam/2458530.py | 5 +- gamefixes-steam/2475980.py | 27 ++++-- gamefixes-steam/2507620.py | 9 +- gamefixes-steam/251150.py | 8 +- gamefixes-steam/251290.py | 8 +- gamefixes-steam/252430.py | 9 +- gamefixes-steam/256330.py | 12 +-- gamefixes-steam/257420.py | 13 ++- gamefixes-steam/260130.py | 6 +- gamefixes-steam/261510.py | 9 +- gamefixes-steam/2620.py | 9 +- gamefixes-steam/266840.py | 8 +- gamefixes-steam/268050.py | 9 +- gamefixes-steam/271590.py | 11 +-- gamefixes-steam/282900.py | 5 +- gamefixes-steam/284160.py | 9 +- gamefixes-steam/286360.py | 5 +- gamefixes-steam/287310.py | 9 +- gamefixes-steam/287450.py | 8 +- gamefixes-steam/289130.py | 9 +- gamefixes-steam/292410.py | 12 ++- gamefixes-steam/294700.py | 26 +++-- gamefixes-steam/298110.py | 8 +- gamefixes-steam/302370.py | 28 ++++-- gamefixes-steam/307690.py | 8 +- gamefixes-steam/307780.py | 6 +- gamefixes-steam/311210.py | 9 +- gamefixes-steam/311730.py | 9 +- gamefixes-steam/312060.py | 9 +- gamefixes-steam/312450.py | 8 +- gamefixes-steam/312670.py | 9 +- gamefixes-steam/312790.py | 6 +- gamefixes-steam/321040.py | 6 +- gamefixes-steam/328500.py | 11 +-- gamefixes-steam/329380.py | 6 +- gamefixes-steam/33990.py | 5 +- gamefixes-steam/34330.py | 7 +- gamefixes-steam/348550.py | 9 +- gamefixes-steam/35140.py | 9 +- gamefixes-steam/351710.py | 5 +- gamefixes-steam/356190.py | 6 +- gamefixes-steam/356500.py | 6 +- gamefixes-steam/3590.py | 8 +- gamefixes-steam/359550.py | 9 +- gamefixes-steam/359870.py | 15 +-- gamefixes-steam/366250.py | 6 +- gamefixes-steam/371660.py | 8 +- gamefixes-steam/372000.py | 9 +- gamefixes-steam/377160.py | 9 +- gamefixes-steam/377840.py | 9 +- gamefixes-steam/378630.py | 5 +- gamefixes-steam/379720.py | 23 +++-- gamefixes-steam/386360.py | 26 +++-- gamefixes-steam/388750.py | 9 +- gamefixes-steam/390710.py | 9 +- gamefixes-steam/39140.py | 9 +- gamefixes-steam/39210.py | 9 +- gamefixes-steam/39500.py | 11 +-- gamefixes-steam/39510.py | 30 +++--- gamefixes-steam/39690.py | 4 +- gamefixes-steam/397540.py | 9 +- gamefixes-steam/40800.py | 10 +- gamefixes-steam/409090.py | 16 +++- gamefixes-steam/40950.py | 5 +- gamefixes-steam/40970.py | 5 +- gamefixes-steam/409720.py | 9 +- gamefixes-steam/410900.py | 9 +- gamefixes-steam/424840.py | 7 +- gamefixes-steam/428660.py | 10 +- gamefixes-steam/429720.py | 6 +- gamefixes-steam/43110.py | 9 +- gamefixes-steam/434570.py | 6 +- gamefixes-steam/436670.py | 8 +- gamefixes-steam/440900.py | 12 +-- gamefixes-steam/44690.py | 9 +- gamefixes-steam/447040.py | 20 ++-- gamefixes-steam/452440.py | 16 ++-- gamefixes-steam/45750.py | 5 +- gamefixes-steam/460120.py | 11 ++- gamefixes-steam/46500.py | 13 ++- gamefixes-steam/465280.py | 9 +- gamefixes-steam/465840.py | 5 +- gamefixes-steam/4730.py | 6 +- gamefixes-steam/48190.py | 5 +- gamefixes-steam/489830.py | 9 +- gamefixes-steam/49520.py | 9 +- gamefixes-steam/495420.py | 9 +- gamefixes-steam/497360.py | 96 +++++++++++++++---- gamefixes-steam/508980.py | 13 +-- gamefixes-steam/518790.py | 9 +- gamefixes-steam/550340.py | 6 +- gamefixes-steam/559620.py | 7 +- gamefixes-steam/570940.py | 6 +- gamefixes-steam/582660.py | 13 ++- gamefixes-steam/586140.py | 5 +- gamefixes-steam/593600.py | 9 +- gamefixes-steam/601510.py | 6 +- gamefixes-steam/61500.py | 6 +- gamefixes-steam/6270.py | 6 +- gamefixes-steam/627270.py | 6 +- gamefixes-steam/63110.py | 5 +- gamefixes-steam/633230.py | 10 +- gamefixes-steam/63700.py | 6 +- gamefixes-steam/63710.py | 9 +- gamefixes-steam/638160.py | 6 +- gamefixes-steam/638970.py | 9 +- gamefixes-steam/644930.py | 8 +- gamefixes-steam/65540.py | 26 ++--- gamefixes-steam/65600.py | 11 +-- gamefixes-steam/65610.py | 4 +- gamefixes-steam/658150.py | 8 +- gamefixes-steam/65930.py | 9 +- gamefixes-steam/678950.py | 6 +- gamefixes-steam/700600.py | 9 +- gamefixes-steam/702050.py | 7 +- gamefixes-steam/70400.py | 9 +- gamefixes-steam/70420.py | 9 +- gamefixes-steam/72850.py | 9 +- gamefixes-steam/729040.py | 6 +- gamefixes-steam/730830.py | 5 +- gamefixes-steam/73170.py | 9 +- gamefixes-steam/740550.py | 6 +- gamefixes-steam/750920.py | 9 +- gamefixes-steam/773370.py | 9 +- gamefixes-steam/78000.py | 9 +- gamefixes-steam/782330.py | 6 +- gamefixes-steam/7850.py | 9 +- gamefixes-steam/812140.py | 19 ++-- gamefixes-steam/813780.py | 6 +- gamefixes-steam/816020.py | 10 +- gamefixes-steam/8190.py | 9 +- gamefixes-steam/834530.py | 9 +- gamefixes-steam/888790.py | 5 +- gamefixes-steam/893180.py | 6 +- gamefixes-steam/895870.py | 9 +- gamefixes-steam/906510.py | 10 +- gamefixes-steam/910830.py | 9 +- gamefixes-steam/913740.py | 9 +- gamefixes-steam/936160.py | 5 +- gamefixes-steam/963930.py | 8 +- gamefixes-steam/968370.py | 5 +- gamefixes-steam/976310.py | 6 +- gamefixes-steam/976730.py | 6 +- gamefixes-steam/9900.py | 10 +- gamefixes-steam/99300.py | 9 +- gamefixes-steam/997070.py | 6 +- gamefixes-steam/default.py | 13 ++- gamefixes-umu/default.py | 10 +- gamefixes-umu/umu-2016590.py | 28 ++++-- gamefixes-umu/umu-model2.py | 7 +- gamefixes-umu/umu-starcitizen.py | 46 +++++---- gamefixes-umu/winetricks-gui.py | 9 +- gamefixes-zoomplatform/umu-240200.py | 6 +- ...mu-4bff76f4-566a-4714-b481-95d3343afe22.py | 6 +- 273 files changed, 1299 insertions(+), 1189 deletions(-) diff --git a/gamefixes-egs/umu-990080.py b/gamefixes-egs/umu-990080.py index 65a0c3c8..9d4e47c8 100644 --- a/gamefixes-egs/umu-990080.py +++ b/gamefixes-egs/umu-990080.py @@ -1,9 +1,9 @@ -""" Game fix Hogwarts Legacy -""" -#pylint: disable=C0103 +"""Game fix Hogwarts Legacy""" +# pylint: disable=C0103 from protonfixes import util + def main(): # Requires vcrun2019 to launch util.protontricks('vcrun2019') diff --git a/gamefixes-gog/umu-1228964594.py b/gamefixes-gog/umu-1228964594.py index a169c35d..1a827b9c 100644 --- a/gamefixes-gog/umu-1228964594.py +++ b/gamefixes-gog/umu-1228964594.py @@ -1,9 +1,9 @@ -""" Game fix for Soldier of Fortune II: Double Helix - Gold Edition -""" -#pylint: disable=C0103 +"""Game fix for Soldier of Fortune II: Double Helix - Gold Edition""" +# pylint: disable=C0103 from protonfixes import util + def main(): # Fix display issues util.set_environment('MESA_EXTENSION_MAX_YEAR', '2003') diff --git a/gamefixes-gog/umu-1564851593.py b/gamefixes-gog/umu-1564851593.py index 21ed54c5..ab5ef93d 100644 --- a/gamefixes-gog/umu-1564851593.py +++ b/gamefixes-gog/umu-1564851593.py @@ -14,19 +14,19 @@ from protonfixes.logger import log # Archive containing the text injecting framework -arc = "https://github.com/user-attachments/files/16136393/d3d9-2206220222.zip" +arc = 'https://github.com/user-attachments/files/16136393/d3d9-2206220222.zip' # Digest of the archive, d3d9.dll proxy and JSON -hashsum_arc = "caed98ec44d4270290f0652502344a40c1d45216caa8935b41e7d9f461ae2d24" -hashsum_d3d9 = "17e1c6706c684b19d05e89b588ba5101bf3ee40429cecf803c6e98af9b342129" -hashsum_config = "aecb441fdc9c9e2ba78df63dfbe14f48c31dfd5ad571adba988ba362fc814377" +hashsum_arc = 'caed98ec44d4270290f0652502344a40c1d45216caa8935b41e7d9f461ae2d24' +hashsum_d3d9 = '17e1c6706c684b19d05e89b588ba5101bf3ee40429cecf803c6e98af9b342129' +hashsum_config = 'aecb441fdc9c9e2ba78df63dfbe14f48c31dfd5ad571adba988ba362fc814377' def main(): # pylint: disable=R0914 - tmp = f"{mkdtemp()}/d3d9-2206220222.zip" + tmp = f'{mkdtemp()}/d3d9-2206220222.zip' install_dir = util.get_game_install_path() - path_config = f"{install_dir}/config.json" - path_dll = f"{install_dir}/d3d9.dll" + path_config = f'{install_dir}/config.json' + path_dll = f'{install_dir}/d3d9.dll' hashsum = sha256() # Ensure that the text injection files do not already exist before opening @@ -36,8 +36,8 @@ def main(): # pylint: disable=R0914 ) return - config = open(path_config, mode="rb") # pylint: disable=R1732 - dll = open(path_dll, mode="rb") # pylint: disable=R1732 + config = open(path_config, mode='rb') # pylint: disable=R1732 + dll = open(path_dll, mode='rb') # pylint: disable=R1732 # Check if the text injection framework files have already been replaced if ( @@ -57,10 +57,10 @@ def main(): # pylint: disable=R0914 # Download the archive with urlopen(arc, timeout=30) as resp: if resp.status != 200: - log.warning(f"github returned the status code: {resp.status}") + log.warning(f'github returned the status code: {resp.status}') return - with open(tmp, mode="wb", buffering=0) as file: + with open(tmp, mode='wb', buffering=0) as file: chunk_size = 64 * 1024 # 64 KB buffer = bytearray(chunk_size) view = memoryview(buffer) @@ -70,7 +70,7 @@ def main(): # pylint: disable=R0914 hashsum.update(view[:size]) if hashsum_arc != hashsum.hexdigest(): - log.warning(f"Digest mismatch: {arc}") + log.warning(f'Digest mismatch: {arc}') log.warn(f"Expected '{hashsum_arc}', skipping...") return @@ -82,10 +82,10 @@ def main(): # pylint: disable=R0914 randstr = os.urandom(16).hex() log.info(f"Renaming 'config.json' -> '.{randstr}.config.json.bak'") log.info(f"Renaming 'd3d9.dll' -> '.{randstr}.d3d9.dll.bak'") - os.rename(path_config, f"{install_dir}/.{randstr}.config.json.bak") - os.rename(path_dll, f"{install_dir}/.{randstr}.d3d9.dll.bak") + os.rename(path_config, f'{install_dir}/.{randstr}.config.json.bak') + os.rename(path_dll, f'{install_dir}/.{randstr}.d3d9.dll.bak') - with ZipFile(tmp, mode="r") as zipfile: + with ZipFile(tmp, mode='r') as zipfile: log.info("Fixing in-game font for 'Flowers - Le Volume Sur Hiver'...") zipfile.extractall(install_dir) diff --git a/gamefixes-gog/umu-1580232252.py b/gamefixes-gog/umu-1580232252.py index de63003b..07a505d5 100644 --- a/gamefixes-gog/umu-1580232252.py +++ b/gamefixes-gog/umu-1580232252.py @@ -1,9 +1,9 @@ -""" Resident Evil (1997) -""" -#pylint: disable=C0103 +"""Resident Evil (1997)""" +# pylint: disable=C0103 from protonfixes import util + def main(): util.winedll_override('ddraw', 'n,b') util.winedll_override('dinput', 'n,b') diff --git a/gamefixes-gog/umu-22610.py b/gamefixes-gog/umu-22610.py index 362f774e..1288217b 100755 --- a/gamefixes-gog/umu-22610.py +++ b/gamefixes-gog/umu-22610.py @@ -1,8 +1,8 @@ -""" Alien Breed: Impact -""" -#pylint: disable=C0103 +"""Alien Breed: Impact""" +# pylint: disable=C0103 from protonfixes import util + def main(): util.protontricks('physx') diff --git a/gamefixes-gog/umu-22650.py b/gamefixes-gog/umu-22650.py index 453d1650..7d5a7402 100755 --- a/gamefixes-gog/umu-22650.py +++ b/gamefixes-gog/umu-22650.py @@ -1,8 +1,8 @@ -""" Alien Breed 2: Assault -""" -#pylint: disable=C0103 +"""Alien Breed 2: Assault""" +# pylint: disable=C0103 from protonfixes import util + def main(): util.protontricks('physx') diff --git a/gamefixes-gog/umu-22670.py b/gamefixes-gog/umu-22670.py index ecfd7673..155b9c40 100755 --- a/gamefixes-gog/umu-22670.py +++ b/gamefixes-gog/umu-22670.py @@ -1,8 +1,8 @@ -""" Alien Breed 3: Descent -""" -#pylint: disable=C0103 +"""Alien Breed 3: Descent""" +# pylint: disable=C0103 from protonfixes import util + def main(): util.protontricks('physx') diff --git a/gamefixes-gog/umu-metalgearsolid.py b/gamefixes-gog/umu-metalgearsolid.py index dd53adeb..34356944 100644 --- a/gamefixes-gog/umu-metalgearsolid.py +++ b/gamefixes-gog/umu-metalgearsolid.py @@ -1,10 +1,11 @@ -""" +""" METAL GEAR SOLID """ -#pylint: disable=C0103 +# pylint: disable=C0103 from protonfixes import util + def main(): """ override for wrapper shipped with the game diff --git a/gamefixes-gog/umu-silenthill4.py b/gamefixes-gog/umu-silenthill4.py index 383826c2..1f43ec0c 100644 --- a/gamefixes-gog/umu-silenthill4.py +++ b/gamefixes-gog/umu-silenthill4.py @@ -1,11 +1,16 @@ -""" +""" Silent Hill 4: The Room """ -#pylint: disable=C0103 +# pylint: disable=C0103 from protonfixes import util + def main(): - util.winedll_override('d3d8', 'n,b') # GOG's dxcfg / Steam006 fixes - util.winedll_override('dinput8', 'n,b') # GOG's controller fix / Silent Hill 4: Wrapper by Nemesis / ThirteenAG's widescreen fix - util.winedll_override('dsound', 'n,b') # Ultimate ASI Loader / Silent Hill 4 Randomizer + util.winedll_override('d3d8', 'n,b') # GOG's dxcfg / Steam006 fixes + util.winedll_override( + 'dinput8', 'n,b' + ) # GOG's controller fix / Silent Hill 4: Wrapper by Nemesis / ThirteenAG's widescreen fix + util.winedll_override( + 'dsound', 'n,b' + ) # Ultimate ASI Loader / Silent Hill 4 Randomizer diff --git a/gamefixes-gog/umu-wheeloftime.py b/gamefixes-gog/umu-wheeloftime.py index f26b18aa..5a0cc294 100644 --- a/gamefixes-gog/umu-wheeloftime.py +++ b/gamefixes-gog/umu-wheeloftime.py @@ -1,9 +1,10 @@ -""" +""" The Wheel of Time """ -#pylint: disable=C0103 +# pylint: disable=C0103 from protonfixes import util + def main(): - util.winedll_override('ddraw', 'n,b') # GOG's dxcfg + util.winedll_override('ddraw', 'n,b') # GOG's dxcfg diff --git a/gamefixes-steam/1017900.py b/gamefixes-steam/1017900.py index a43f94b6..7f8245d1 100755 --- a/gamefixes-steam/1017900.py +++ b/gamefixes-steam/1017900.py @@ -1,12 +1,11 @@ -""" Game fix for Age of Empires: DE -""" -#pylint: disable=C0103 +"""Game fix for Age of Empires: DE""" +# pylint: disable=C0103 from protonfixes import util + def main(): - """ Changes the proton argument from the launcher to the game - """ + """Changes the proton argument from the launcher to the game""" # Replace launcher with game exe in proton arguments util.append_argument('-NoStartup') diff --git a/gamefixes-steam/10220.py b/gamefixes-steam/10220.py index a7268e7b..e42adfec 100644 --- a/gamefixes-steam/10220.py +++ b/gamefixes-steam/10220.py @@ -1,9 +1,9 @@ -""" Postal III -""" -#pylint: disable=C0103 +"""Postal III""" +# pylint: disable=C0103 from protonfixes import util + # Missing fonts for console and various UI # grep -rh --include "*.res" '"name"' . | awk -F '"' '{print $4}' | awk '!visited[$0]++' def main(): diff --git a/gamefixes-steam/1030830.py b/gamefixes-steam/1030830.py index ee501d78..ae90ffee 100755 --- a/gamefixes-steam/1030830.py +++ b/gamefixes-steam/1030830.py @@ -1,10 +1,9 @@ -""" Game fix for Mafia II Definitive Edition -""" -#pylint: disable=C0103 +"""Game fix for Mafia II Definitive Edition""" +# pylint: disable=C0103 from protonfixes import util + def main(): - """ Enable NVIDIA PhysX support. - """ + """Enable NVIDIA PhysX support.""" util.protontricks('physx') diff --git a/gamefixes-steam/105000.py b/gamefixes-steam/105000.py index 30668144..67290b1a 100755 --- a/gamefixes-steam/105000.py +++ b/gamefixes-steam/105000.py @@ -1,10 +1,11 @@ -""" A New Beginning - Final Cut +"""A New Beginning - Final Cut https://github.com/ValveSoftware/Proton/issues/1412 -No cutscene audio in Daedalic Games (Memoria, The Night of the Rabbit, A New Beginning - Final Cut) (105000 230820 243200) #1412 +No cutscene audio in Daedalic Games (Memoria, The Night of the Rabbit, A New Beginning - Final Cut) (105000 230820 243200) #1412 """ -#pylint: disable=C0103 +# pylint: disable=C0103 from protonfixes import util + def main(): util.winedll_override('xaudio2_7', 'd') diff --git a/gamefixes-steam/105400.py b/gamefixes-steam/105400.py index 3d4e9161..d639d4e1 100755 --- a/gamefixes-steam/105400.py +++ b/gamefixes-steam/105400.py @@ -1,7 +1,6 @@ -""" Game fix for Fable III -""" +"""Game fix for Fable III""" -#pylint: disable=C0103 +# pylint: disable=C0103 import os import shutil @@ -15,7 +14,14 @@ def main(): util.protontricks('xliveless') # Remove Windows Live folder - dirpath = os.path.join(util.protonprefix(),"drive_c","Program Files","Common Files","Microsoft Shared","Windows Live") + dirpath = os.path.join( + util.protonprefix(), + 'drive_c', + 'Program Files', + 'Common Files', + 'Microsoft Shared', + 'Windows Live', + ) if os.path.exists(dirpath): shutil.rmtree(dirpath) else: diff --git a/gamefixes-steam/105450.py b/gamefixes-steam/105450.py index 45ee0705..4d2348d4 100755 --- a/gamefixes-steam/105450.py +++ b/gamefixes-steam/105450.py @@ -1,12 +1,11 @@ -""" Game fix for Age Of Empire 3: Complete Collection -""" -#pylint: disable=C0103 +"""Game fix for Age Of Empire 3: Complete Collection""" +# pylint: disable=C0103 from protonfixes import util + def main(): - """ installs corefonts, l3codecx, mfc42, winxp - """ + """installs corefonts, l3codecx, mfc42, winxp""" # https://github.com/ValveSoftware/Proton/issues/17#issuecomment-415977510 util.protontricks('mfc42') diff --git a/gamefixes-steam/1056640.py b/gamefixes-steam/1056640.py index 07c82681..eb907025 100755 --- a/gamefixes-steam/1056640.py +++ b/gamefixes-steam/1056640.py @@ -1,8 +1,8 @@ -""" Game fix for Phantasy Star Online 2 -""" -#pylint: disable=C0103 +"""Game fix for Phantasy Star Online 2""" +# pylint: disable=C0103 from protonfixes import util + def main(): - util.set_environment('WINE_NO_OPEN_FILE_SEARCH','pso2_bin/data') + util.set_environment('WINE_NO_OPEN_FILE_SEARCH', 'pso2_bin/data') diff --git a/gamefixes-steam/1062040.py b/gamefixes-steam/1062040.py index c2bd94ca..5c9a761c 100755 --- a/gamefixes-steam/1062040.py +++ b/gamefixes-steam/1062040.py @@ -1,11 +1,10 @@ -""" Dragon Star Varnir -""" -#pylint: disable=C0103 +"""Dragon Star Varnir""" + +# pylint: disable=C0103 from protonfixes import util def main(): - """ Dragon Star Varnir fix - """ + """Dragon Star Varnir fix""" # Fixes the startup process. util.winedll_override('xactengine3_7', 'n') diff --git a/gamefixes-steam/1063730.py b/gamefixes-steam/1063730.py index 5bccd02e..b1b27d3e 100755 --- a/gamefixes-steam/1063730.py +++ b/gamefixes-steam/1063730.py @@ -1,11 +1,10 @@ -""" Game fix for New World -""" -#pylint: disable=C0103 +"""Game fix for New World""" +# pylint: disable=C0103 from protonfixes import util + def main(): - """ Needs core count limit - """ + """Needs core count limit""" # Fix the startup process: util.set_cpu_topology_limit(12) diff --git a/gamefixes-steam/108710.py b/gamefixes-steam/108710.py index 14c7a550..771c4c54 100755 --- a/gamefixes-steam/108710.py +++ b/gamefixes-steam/108710.py @@ -1,12 +1,10 @@ -""" Alan Wake -""" +"""Alan Wake""" from protonfixes import util def main(): - """ Installs d3dcompiler_47 - """ + """Installs d3dcompiler_47""" # Fixes error on launch util.protontricks('d3dcompiler_47') diff --git a/gamefixes-steam/1097150.py b/gamefixes-steam/1097150.py index 72cedfad..67018065 100755 --- a/gamefixes-steam/1097150.py +++ b/gamefixes-steam/1097150.py @@ -1,10 +1,10 @@ -""" Game fix for Fall Guys -""" -#pylint: disable=C0103 +"""Game fix for Fall Guys""" + +# pylint: disable=C0103 from protonfixes import util + def main(): - """ Create symlink of eac so at the right location - """ + """Create symlink of eac so at the right location""" util.install_eac_runtime() util.set_environment('DOTNET_BUNDLE_EXTRACT_BASE_DIR', '') diff --git a/gamefixes-steam/1097880.py b/gamefixes-steam/1097880.py index e42ca628..5de1c0ae 100755 --- a/gamefixes-steam/1097880.py +++ b/gamefixes-steam/1097880.py @@ -1,12 +1,10 @@ -""" Game fix for Super Naughty Maid 2 -""" +"""Game fix for Super Naughty Maid 2""" from protonfixes import util def main(): - """ installs quartz, wmp9 - """ + """installs quartz, wmp9""" # The whole game is only videos and require wmp9 & quartz util.protontricks('quartz') diff --git a/gamefixes-steam/1105510.py b/gamefixes-steam/1105510.py index 8f6624c3..44933eac 100755 --- a/gamefixes-steam/1105510.py +++ b/gamefixes-steam/1105510.py @@ -1,9 +1,9 @@ -""" Game fix for Yakuza 5 -""" -#pylint: disable=C0103 +"""Game fix for Yakuza 5""" + +# pylint: disable=C0103 from protonfixes import util + def main(): - """ Needs WINE_DISABLE_SFN set from this patch: https://github.com/ValveSoftware/wine/pull/205 - """ + """Needs WINE_DISABLE_SFN set from this patch: https://github.com/ValveSoftware/wine/pull/205""" util.set_environment('WINE_DISABLE_SFN', '1') diff --git a/gamefixes-steam/110800.py b/gamefixes-steam/110800.py index bc6fdc61..f6f08ac6 100755 --- a/gamefixes-steam/110800.py +++ b/gamefixes-steam/110800.py @@ -1,12 +1,12 @@ -""" Game fix for L.A. Noire -""" -#pylint: disable=C0103 +"""Game fix for L.A. Noire""" +# pylint: disable=C0103 from protonfixes import util + def main(): - """ installs d3dx9_43, d3dcompiler_43, d3dx11_43, d3dcompiler_47 - forces dx11 (enables intro cinematics) without editing settings.ini + """installs d3dx9_43, d3dcompiler_43, d3dx11_43, d3dcompiler_47 + forces dx11 (enables intro cinematics) without editing settings.ini """ # https://github.com/ValveSoftware/Proton/issues/544#issuecomment-826150012 diff --git a/gamefixes-steam/1113000.py b/gamefixes-steam/1113000.py index 6d3ee113..397e058f 100644 --- a/gamefixes-steam/1113000.py +++ b/gamefixes-steam/1113000.py @@ -1,9 +1,9 @@ -""" Game fix for Persona 4 Golden -""" -#pylint: disable=C0103 +"""Game fix for Persona 4 Golden""" +# pylint: disable=C0103 from protonfixes import util + def main(): util.protontricks('d3dx11_43') util.protontricks('wmp9') diff --git a/gamefixes-steam/1121560.py b/gamefixes-steam/1121560.py index 341aaddd..c2b30e79 100755 --- a/gamefixes-steam/1121560.py +++ b/gamefixes-steam/1121560.py @@ -1,11 +1,12 @@ -""" Atelier Ryza: Ever Darkness & the Secret Hideout +"""Atelier Ryza: Ever Darkness & the Secret Hideout Missing voices/sounds in cutscenes Requires disabling the gstreamer protonaudioconverterbin plugin to get full audio in cutscenes """ -#pylint: disable=C0103 +# pylint: disable=C0103 from protonfixes import util + def main(): util.disable_protonmediaconverter() diff --git a/gamefixes-steam/113400.py b/gamefixes-steam/113400.py index d00d91f2..d3b09cab 100755 --- a/gamefixes-steam/113400.py +++ b/gamefixes-steam/113400.py @@ -1,9 +1,9 @@ -""" APB Reloaded: Fix Wrong DLL error and Steam login crash -""" -#pylint: disable=C0103 +"""APB Reloaded: Fix Wrong DLL error and Steam login crash""" +# pylint: disable=C0103 from protonfixes import util + def main(): # Install Visual C++ Runtime 2017 util.protontricks('vcrun2017') diff --git a/gamefixes-steam/1144400.py b/gamefixes-steam/1144400.py index ee3aa86a..e2915805 100644 --- a/gamefixes-steam/1144400.py +++ b/gamefixes-steam/1144400.py @@ -1,7 +1,8 @@ -""" Game fix for Senren * Banka -""" +"""Game fix for Senren * Banka""" + from protonfixes import util + def main(): """Install quartz, wmp11, qasf diff --git a/gamefixes-steam/1151640.py b/gamefixes-steam/1151640.py index 70bfeb0c..0882476f 100755 --- a/gamefixes-steam/1151640.py +++ b/gamefixes-steam/1151640.py @@ -1,11 +1,11 @@ -""" Game fix for Horizon Zero Dawn -""" -#pylint: disable=C0103 +"""Game fix for Horizon Zero Dawn""" +# pylint: disable=C0103 from protonfixes import util + def main(): # C++ runtime is not provided in the manifest util.protontricks('vcrun2019') # Set SteamGameId so that non-steam versions can pick up steam-specific fixes in proton's wine code - util.set_environment('SteamGameId','1151640') + util.set_environment('SteamGameId', '1151640') diff --git a/gamefixes-steam/1158850.py b/gamefixes-steam/1158850.py index 86576335..0ef0bf4c 100755 --- a/gamefixes-steam/1158850.py +++ b/gamefixes-steam/1158850.py @@ -1,4 +1,4 @@ -""" The Great Ace Attorney Chronicles +"""The Great Ace Attorney Chronicles Missing sound in bonus content videos Requires disabling the gstreamer protonaudioconverterbin to get full audio """ diff --git a/gamefixes-steam/1174180.py b/gamefixes-steam/1174180.py index 04f98b86..8f67f96d 100755 --- a/gamefixes-steam/1174180.py +++ b/gamefixes-steam/1174180.py @@ -1,11 +1,11 @@ -""" Game fix for Red Dead Redemption 2 -""" -#pylint: disable=C0103 +"""Game fix for Red Dead Redemption 2""" + +# pylint: disable=C0103 from protonfixes import util + def main(): - """ Sometimes game will not launch if -fullscreen -vulkan is not specified - """ + """Sometimes game will not launch if -fullscreen -vulkan is not specified""" util.append_argument('-fullscreen -vulkan') # Set SteamGameId so that non-steam versions can pick up steam-specific fixes in proton's wine code - util.set_environment('SteamGameId','1174180') + util.set_environment('SteamGameId', '1174180') diff --git a/gamefixes-steam/1175730.py b/gamefixes-steam/1175730.py index 00ba5352..5eda1fdb 100755 --- a/gamefixes-steam/1175730.py +++ b/gamefixes-steam/1175730.py @@ -1,10 +1,9 @@ -""" Game fix Tree Of Savior -""" -#pylint: disable=C0103 +"""Game fix Tree Of Savior""" +# pylint: disable=C0103 from protonfixes import util + def main(): - """ https://forum.treeofsavior.com/t/linux-the-graphic-card-does-not-support-directx11-13ep/418073/13 - """ + """https://forum.treeofsavior.com/t/linux-the-graphic-card-does-not-support-directx11-13ep/418073/13""" util.protontricks('d3dcompiler_47') diff --git a/gamefixes-steam/12210.py b/gamefixes-steam/12210.py index cf0912de..81d171fa 100755 --- a/gamefixes-steam/12210.py +++ b/gamefixes-steam/12210.py @@ -1,11 +1,10 @@ -""" Game fix for GTA IV -""" -#pylint: disable=C0103 +"""Game fix for GTA IV""" +# pylint: disable=C0103 from protonfixes import util + def main(): - """ installs wmp11 - """ + """installs wmp11""" # Fixes Independence FM user radio station util.protontricks('wmp11') diff --git a/gamefixes-steam/1222370.py b/gamefixes-steam/1222370.py index 4fcf1376..2b807d1e 100755 --- a/gamefixes-steam/1222370.py +++ b/gamefixes-steam/1222370.py @@ -1,8 +1,10 @@ -""" Necromunda: Hired Gun -""" -#pylint: disable=C0103 +"""Necromunda: Hired Gun""" +# pylint: disable=C0103 from protonfixes import util + def main(): - util.replace_command('Necromunda.exe', 'Necromunda/Binaries/Win64/Necromunda-Win64-Shipping.exe') + util.replace_command( + 'Necromunda.exe', 'Necromunda/Binaries/Win64/Necromunda-Win64-Shipping.exe' + ) diff --git a/gamefixes-steam/1222690.py b/gamefixes-steam/1222690.py index c2ce6773..89c8f7ae 100755 --- a/gamefixes-steam/1222690.py +++ b/gamefixes-steam/1222690.py @@ -1,10 +1,10 @@ -""" Game fix for Dragon Age Inquisition -""" -#pylint: disable=C0103 +"""Game fix for Dragon Age Inquisition""" + +# pylint: disable=C0103 from protonfixes import util + def main(): - """ Has Xinput patch in proton-wine - """ + """Has Xinput patch in proton-wine""" # Set SteamGameId so that non-steam versions can pick up steam-specific fixes in proton's wine code - util.set_environment('SteamGameId','1222690') + util.set_environment('SteamGameId', '1222690') diff --git a/gamefixes-steam/1230140.py b/gamefixes-steam/1230140.py index 13bfc1eb..2fd39a31 100755 --- a/gamefixes-steam/1230140.py +++ b/gamefixes-steam/1230140.py @@ -1,12 +1,11 @@ -""" Game fix for ATRI -My Dear Moments- -""" -#pylint: disable=C0103 +"""Game fix for ATRI -My Dear Moments-""" +# pylint: disable=C0103 from protonfixes import util + def main(): - """ Installs wmp11 - """ + """Installs wmp11""" util.protontricks('quartz_feb2010') util.protontricks('wmp11') util.protontricks('qasf') diff --git a/gamefixes-steam/1237970.py b/gamefixes-steam/1237970.py index d781409e..0449e0c4 100755 --- a/gamefixes-steam/1237970.py +++ b/gamefixes-steam/1237970.py @@ -1,15 +1,14 @@ -""" Game fix for Titanfall 2 -""" -#pylint: disable=C0103 +"""Game fix for Titanfall 2""" +# pylint: disable=C0103 import os import subprocess import glob from protonfixes import util + def main(): - """ Allow -northstar option to work - """ + """Allow -northstar option to work""" # Define game directory install_dir = glob.escape(util.get_game_install_path()) diff --git a/gamefixes-steam/1239520.py b/gamefixes-steam/1239520.py index 985c3cb4..c388fcef 100755 --- a/gamefixes-steam/1239520.py +++ b/gamefixes-steam/1239520.py @@ -1,9 +1,9 @@ -""" Madden NFL 21 needs vcrun2019 for online mode to work -""" -#pylint: disable=C0103 +"""Madden NFL 21 needs vcrun2019 for online mode to work""" +# pylint: disable=C0103 from protonfixes import util + def main(): # Replace launcher with game exe in proton arguments util.protontricks('vcrun2019') diff --git a/gamefixes-steam/1240440.py b/gamefixes-steam/1240440.py index e29eb779..98fdb125 100755 --- a/gamefixes-steam/1240440.py +++ b/gamefixes-steam/1240440.py @@ -1,8 +1,8 @@ -""" Halo Infinite needs vcrun2019 -""" -#pylint: disable=C0103 +"""Halo Infinite needs vcrun2019""" +# pylint: disable=C0103 from protonfixes import util + def main(): util.protontricks('vcrun2019') diff --git a/gamefixes-steam/1245620.py b/gamefixes-steam/1245620.py index eaccc31e..7410b264 100644 --- a/gamefixes-steam/1245620.py +++ b/gamefixes-steam/1245620.py @@ -7,4 +7,4 @@ def main(): # Create the DLC.bdt file if it doesn't already exist, which is known to fix Easy AntiCheat not working for players that don't own the DLC # A blank file is enough to get multiplayer working - Path(f"{util.get_game_install_path()}/Game/DLC.bdt").touch(exist_ok=True) + Path(f'{util.get_game_install_path()}/Game/DLC.bdt').touch(exist_ok=True) diff --git a/gamefixes-steam/1250410.py b/gamefixes-steam/1250410.py index a7177ff2..10bdc03a 100755 --- a/gamefixes-steam/1250410.py +++ b/gamefixes-steam/1250410.py @@ -1,12 +1,11 @@ -""" Game fix for Flight Simulator 2020 -""" -#pylint: disable=C0103 +"""Game fix for Flight Simulator 2020""" +# pylint: disable=C0103 from protonfixes import util + def main(): - """ Needs fastlaunch option - """ + """Needs fastlaunch option""" # Fixes the startup process. util.append_argument('-FastLaunch') diff --git a/gamefixes-steam/1257290.py b/gamefixes-steam/1257290.py index 3d22d088..b67a7d2b 100755 --- a/gamefixes-steam/1257290.py +++ b/gamefixes-steam/1257290.py @@ -1,11 +1,12 @@ -""" Atelier Ryza 2: Lost Legends & the Secret Fairy +"""Atelier Ryza 2: Lost Legends & the Secret Fairy Missing voices/sounds in cutscenes Requires disabling the gstreamer protonaudioconverterbin plugin to get full audio in cutscenes """ -#pylint: disable=C0103 +# pylint: disable=C0103 from protonfixes import util + def main(): util.disable_protonmediaconverter() diff --git a/gamefixes-steam/1259970.py b/gamefixes-steam/1259970.py index 5574c5bf..20771342 100755 --- a/gamefixes-steam/1259970.py +++ b/gamefixes-steam/1259970.py @@ -1,9 +1,9 @@ -""" Game fix for Pes 2021 -""" -#pylint: disable=C0103 +"""Game fix for Pes 2021""" +# pylint: disable=C0103 from protonfixes import util + def main(): # Replace launcher with game exe in proton arguments util.protontricks('vcrun2019') diff --git a/gamefixes-steam/1272580.py b/gamefixes-steam/1272580.py index 60554a79..300fd469 100644 --- a/gamefixes-steam/1272580.py +++ b/gamefixes-steam/1272580.py @@ -1,9 +1,10 @@ -""" Nine Witches: Family Disruption +"""Nine Witches: Family Disruption No music """ -#pylint: disable=C0103 +# pylint: disable=C0103 from protonfixes import util + def main(): util.disable_protonmediaconverter() diff --git a/gamefixes-steam/1277510.py b/gamefixes-steam/1277510.py index f64e61dd..746f91b1 100644 --- a/gamefixes-steam/1277510.py +++ b/gamefixes-steam/1277510.py @@ -1,8 +1,8 @@ -""" Game fix for Re:ZERO -Starting Life in Another World- The Prophecy of the Throne -""" -#pylint: disable=C0103 +"""Game fix for Re:ZERO -Starting Life in Another World- The Prophecy of the Throne""" +# pylint: disable=C0103 from protonfixes import util + def main(): util.protontricks('d3dcompiler_47') diff --git a/gamefixes-steam/1277930.py b/gamefixes-steam/1277930.py index f019ef00..ea3256cf 100644 --- a/gamefixes-steam/1277930.py +++ b/gamefixes-steam/1277930.py @@ -1,7 +1,8 @@ -""" Game fix for Riddle Joker -""" +"""Game fix for Riddle Joker""" + from protonfixes import util + def main(): """Install quartz, wmp11, qasf diff --git a/gamefixes-steam/12810.py b/gamefixes-steam/12810.py index f343ba4d..747b9c3e 100644 --- a/gamefixes-steam/12810.py +++ b/gamefixes-steam/12810.py @@ -1,8 +1,8 @@ -""" Overlord II -""" -#pylint: disable=C0103 +"""Overlord II""" +# pylint: disable=C0103 from protonfixes import util + def main(): - util.protontricks('physx') # Game crashes without it + util.protontricks('physx') # Game crashes without it diff --git a/gamefixes-steam/1284210.py b/gamefixes-steam/1284210.py index 862c4302..873e70aa 100755 --- a/gamefixes-steam/1284210.py +++ b/gamefixes-steam/1284210.py @@ -1,13 +1,12 @@ -""" Game fix for Guild Wars 2 -""" -#pylint: disable=C0103 +"""Game fix for Guild Wars 2""" +# pylint: disable=C0103 import os from protonfixes import util + def main(): - """ GW2 add NOSTEAM option. - """ + """GW2 add NOSTEAM option.""" # Fixes the startup process. if 'NOSTEAM' in os.environ: util.replace_command('-provider', '') diff --git a/gamefixes-steam/1284410.py b/gamefixes-steam/1284410.py index f9c0b4f8..36eb77f4 100755 --- a/gamefixes-steam/1284410.py +++ b/gamefixes-steam/1284410.py @@ -1,11 +1,11 @@ -""" GWENT: The Witcher Card Game -""" -#pylint: disable=C0103 +"""GWENT: The Witcher Card Game""" +# pylint: disable=C0103 from protonfixes import util + def main(): - """ installs mfc140 + """installs mfc140 mfc140 is necessary to start the game up. GOG login happens inside the Steam overlay. diff --git a/gamefixes-steam/1286880.py b/gamefixes-steam/1286880.py index f9e831ec..f553fe19 100755 --- a/gamefixes-steam/1286880.py +++ b/gamefixes-steam/1286880.py @@ -1,11 +1,10 @@ -""" Ship Graveyard Simulator -""" -#pylint: disable=C0103 +"""Ship Graveyard Simulator""" +# pylint: disable=C0103 from protonfixes import util + def main(): - """ needs builtin vulkan-1 - """ + """needs builtin vulkan-1""" util.winedll_override('vulkan-1', 'b') diff --git a/gamefixes-steam/1293820.py b/gamefixes-steam/1293820.py index b47a41f8..98babe56 100755 --- a/gamefixes-steam/1293820.py +++ b/gamefixes-steam/1293820.py @@ -1,11 +1,10 @@ -""" Game fix for YOU and ME and HER: A Love Story -""" +"""Game fix for YOU and ME and HER: A Love Story""" from protonfixes import util + def main(): - """ install xact, disable esync, disable fsync - """ + """install xact, disable esync, disable fsync""" # Fixes the game from crashing or hanging during intro util.protontricks('xact') diff --git a/gamefixes-steam/1293830.py b/gamefixes-steam/1293830.py index 6c4b479e..55680319 100755 --- a/gamefixes-steam/1293830.py +++ b/gamefixes-steam/1293830.py @@ -1,9 +1,9 @@ -""" Forza Horizon 4 -""" -#pylint: disable=C0103 +"""Forza Horizon 4""" +# pylint: disable=C0103 from protonfixes import util + def main(): # Replace launcher with game exe in proton arguments util.protontricks('vcrun2019') diff --git a/gamefixes-steam/1382330.py b/gamefixes-steam/1382330.py index 4b905ba3..53857f8d 100755 --- a/gamefixes-steam/1382330.py +++ b/gamefixes-steam/1382330.py @@ -1,11 +1,12 @@ -""" Persona 5 Strikers +"""Persona 5 Strikers Missing voices/sounds in cutscenes Requires disabling the gstreamer protonaudioconverterbin plugin to get full audio in cutscenes. fixed by Swish in Protondb """ -#pylint: disable=C0103 +# pylint: disable=C0103 from protonfixes import util + def main(): util.disable_protonmediaconverter() diff --git a/gamefixes-steam/1413480.py b/gamefixes-steam/1413480.py index 40e16129..2329771e 100755 --- a/gamefixes-steam/1413480.py +++ b/gamefixes-steam/1413480.py @@ -1,11 +1,12 @@ -""" Shin Megami Tensei III Nocturne HD Remaster +"""Shin Megami Tensei III Nocturne HD Remaster Missing voices/sounds in cutscenes Requires disabling the gstreamer protonaudioconverterbin plugin to get full audio in cutscenes. fixed Persona 5 Strikers by Swish in Protondb """ -#pylint: disable=C0103 +# pylint: disable=C0103 from protonfixes import util + def main(): util.disable_protonmediaconverter() diff --git a/gamefixes-steam/1434950.py b/gamefixes-steam/1434950.py index c4faf3b0..3611a402 100755 --- a/gamefixes-steam/1434950.py +++ b/gamefixes-steam/1434950.py @@ -1,12 +1,12 @@ -""" Game fix HighFleet -""" -#pylint: disable=C0103 +"""Game fix HighFleet""" + +# pylint: disable=C0103 # from protonfixes import util + def main(): - """ installs d3dcompiler, d3dx11_43 - """ + """installs d3dcompiler, d3dx11_43""" util.protontricks('d3dx11_43') util.protontricks('d3dcompiler_47') diff --git a/gamefixes-steam/1449280.py b/gamefixes-steam/1449280.py index 695e0b17..9d977f68 100755 --- a/gamefixes-steam/1449280.py +++ b/gamefixes-steam/1449280.py @@ -1,14 +1,15 @@ -""" Game fix for Ghostbusters: The Video Game Remastered (2019) -""" -#pylint: disable=C0103 +"""Game fix for Ghostbusters: The Video Game Remastered (2019)""" + +# pylint: disable=C0103 from pathlib import Path from protonfixes import util from protonfixes.logger import log + def main(): # This directory is required to make the game settings persistent # [source: https://www.pcgamingwiki.com/wiki/Ghostbusters:_The_Video_Game_Remastered#Game_settings_do_not_save] - save_dir = f"{util.protonprefix()}/drive_c/users/steamuser/Local Settings/Application Data/GHOSTBUSTERS" + save_dir = f'{util.protonprefix()}/drive_c/users/steamuser/Local Settings/Application Data/GHOSTBUSTERS' try: Path(save_dir).mkdir(parents=True, exist_ok=True) diff --git a/gamefixes-steam/1500540.py b/gamefixes-steam/1500540.py index d7fceaea..47da6560 100644 --- a/gamefixes-steam/1500540.py +++ b/gamefixes-steam/1500540.py @@ -1,9 +1,9 @@ -""" Hardwar -""" -#pylint: disable=C0103 +"""Hardwar""" +# pylint: disable=C0103 from protonfixes import util + def main(): - util.winedll_override('dinput', 'n,b') # DxWrapper component - util.winedll_override('winmm', 'n,b') # Music playback + util.winedll_override('dinput', 'n,b') # DxWrapper component + util.winedll_override('winmm', 'n,b') # Music playback diff --git a/gamefixes-steam/15130.py b/gamefixes-steam/15130.py index 793093d0..77bafd80 100755 --- a/gamefixes-steam/15130.py +++ b/gamefixes-steam/15130.py @@ -1,11 +1,11 @@ -""" Game fix for Beyond Good and Evil -""" -#pylint: disable=C0103 +"""Game fix for Beyond Good and Evil""" + +# pylint: disable=C0103 from protonfixes import util + def main(): - """ installs dsound d3dx9 arial d3dcompiler_47 - """ + """installs dsound d3dx9 arial d3dcompiler_47""" util.protontricks('dsound') util.protontricks('d3dx9') @@ -16,4 +16,9 @@ def main(): """ util.regedit_add('HKLM\\Software\\Wow6432Node\\Ubisoft') - util.regedit_add('HKLM\\Software\\Wow6432Node\\Ubisoft\\Beyond Good & Evil','InstallLanguage','REG_DWORD','1') + util.regedit_add( + 'HKLM\\Software\\Wow6432Node\\Ubisoft\\Beyond Good & Evil', + 'InstallLanguage', + 'REG_DWORD', + '1', + ) diff --git a/gamefixes-steam/1532190.py b/gamefixes-steam/1532190.py index 8bb88db7..190b94bb 100755 --- a/gamefixes-steam/1532190.py +++ b/gamefixes-steam/1532190.py @@ -1,9 +1,9 @@ -""" Game fix for Halo CE mod tools -""" -#pylint: disable=C0103 +"""Game fix for Halo CE mod tools""" +# pylint: disable=C0103 from protonfixes import util + def main(): # Requires vcrun2019 to launch util.protontricks('vcrun2019') diff --git a/gamefixes-steam/1557480.py b/gamefixes-steam/1557480.py index a0d13516..503769dd 100755 --- a/gamefixes-steam/1557480.py +++ b/gamefixes-steam/1557480.py @@ -1,10 +1,9 @@ -""" Project MIKHAIL: A Muv-Luv War Story -""" -#pylint: disable=C0103 +"""Project MIKHAIL: A Muv-Luv War Story""" +# pylint: disable=C0103 from protonfixes import util + def main(): - """ needs native d3dcompiler_47 - """ + """needs native d3dcompiler_47""" util.protontricks('d3dcompiler_47') diff --git a/gamefixes-steam/15700.py b/gamefixes-steam/15700.py index 70e9bfad..53ff729c 100644 --- a/gamefixes-steam/15700.py +++ b/gamefixes-steam/15700.py @@ -1,8 +1,8 @@ -""" Oddworld: Abe's Oddysee -""" -#pylint: disable=C0103 +"""Oddworld: Abe's Oddysee""" +# pylint: disable=C0103 from protonfixes import util + def main(): - util.protontricks('cnc_ddraw') # Videos are laggy without this + util.protontricks('cnc_ddraw') # Videos are laggy without this diff --git a/gamefixes-steam/15740.py b/gamefixes-steam/15740.py index 83a3b737..341b411f 100755 --- a/gamefixes-steam/15740.py +++ b/gamefixes-steam/15740.py @@ -1,11 +1,11 @@ -""" Game fix for Oddworld: Munch's Oddysee -""" -#pylint: disable=C0103 +"""Game fix for Oddworld: Munch's Oddysee""" +# pylint: disable=C0103 from protonfixes import util + def main(): - """ klite to fix videos - prev version of this used devenum, quartz, wmp9 but that caused laggy intros + """klite to fix videos + prev version of this used devenum, quartz, wmp9 but that caused laggy intros """ util.protontricks('klite') diff --git a/gamefixes-steam/15750.py b/gamefixes-steam/15750.py index 3627b1ff..ab500b5b 100644 --- a/gamefixes-steam/15750.py +++ b/gamefixes-steam/15750.py @@ -1,8 +1,8 @@ -""" Oddworld: Stranger's Wrath HD -""" -#pylint: disable=C0103 +"""Oddworld: Stranger's Wrath HD""" +# pylint: disable=C0103 from protonfixes import util + def main(): - util.protontricks('mfc90') # The game crashes on launch without mfc90 + util.protontricks('mfc90') # The game crashes on launch without mfc90 diff --git a/gamefixes-steam/1613450.py b/gamefixes-steam/1613450.py index dfb235f8..827b80ce 100755 --- a/gamefixes-steam/1613450.py +++ b/gamefixes-steam/1613450.py @@ -1,9 +1,9 @@ -""" Game fix for Halo 2 mod tools -""" -#pylint: disable=C0103 +"""Game fix for Halo 2 mod tools""" +# pylint: disable=C0103 from protonfixes import util + def main(): # Requires vcrun2019 to launch util.protontricks('vcrun2019') diff --git a/gamefixes-steam/1659420.py b/gamefixes-steam/1659420.py index ac493675..8a13888d 100755 --- a/gamefixes-steam/1659420.py +++ b/gamefixes-steam/1659420.py @@ -1,12 +1,10 @@ -""" UNCHARTED: Legacy of Thieves Collection -""" -#pylint: disable=C0103 +"""UNCHARTED: Legacy of Thieves Collection""" +# pylint: disable=C0103 from protonfixes import util def main(): - """ The game chokes on more than 16 cores - """ + """The game chokes on more than 16 cores""" util.set_cpu_topology_limit(16) diff --git a/gamefixes-steam/1664350.py b/gamefixes-steam/1664350.py index 31b7dd4e..7c4d4d13 100755 --- a/gamefixes-steam/1664350.py +++ b/gamefixes-steam/1664350.py @@ -1,11 +1,10 @@ -""" Ship Graveyard Simulator Prologue -""" -#pylint: disable=C0103 +"""Ship Graveyard Simulator Prologue""" +# pylint: disable=C0103 from protonfixes import util + def main(): - """ needs builtin vulkan-1 - """ + """needs builtin vulkan-1""" util.winedll_override('vulkan-1', 'b') diff --git a/gamefixes-steam/16700.py b/gamefixes-steam/16700.py index eadc2477..1992daee 100755 --- a/gamefixes-steam/16700.py +++ b/gamefixes-steam/16700.py @@ -1,4 +1,4 @@ -""" Game fix for Stronghold Crusader Extreme HD +"""Game fix for Stronghold Crusader Extreme HD Fixes Multiplayer """ @@ -8,7 +8,6 @@ def main(): - """ Installs directplay - """ + """Installs directplay""" util.protontricks('directplay') diff --git a/gamefixes-steam/16810.py b/gamefixes-steam/16810.py index 12f286c0..3511a7f5 100755 --- a/gamefixes-steam/16810.py +++ b/gamefixes-steam/16810.py @@ -1,8 +1,8 @@ -""" Civilization IV: Colonization -""" +"""Civilization IV: Colonization""" from protonfixes import util + def main(): util.protontricks('oleaut32') util.protontricks('msxml3') diff --git a/gamefixes-steam/1681970.py b/gamefixes-steam/1681970.py index c22c5297..121ba0f8 100755 --- a/gamefixes-steam/1681970.py +++ b/gamefixes-steam/1681970.py @@ -1,9 +1,9 @@ -""" 神都不良探 Underdog Detective -""" -#pylint: disable=C0103 +"""神都不良探 Underdog Detective""" +# pylint: disable=C0103 from protonfixes import util + def main(): util.protontricks('klite') util.winedll_override('winegstreamer', '') diff --git a/gamefixes-steam/1695791.py b/gamefixes-steam/1695791.py index 02e7e1de..7460bb6f 100755 --- a/gamefixes-steam/1695791.py +++ b/gamefixes-steam/1695791.py @@ -1,9 +1,9 @@ -""" Game fix for Halo 3 mod tools -""" -#pylint: disable=C0103 +"""Game fix for Halo 3 mod tools""" +# pylint: disable=C0103 from protonfixes import util + def main(): # Requires vcrun2019 to launch util.protontricks('vcrun2019') diff --git a/gamefixes-steam/1695793.py b/gamefixes-steam/1695793.py index 5a9ffe90..5ac404ee 100755 --- a/gamefixes-steam/1695793.py +++ b/gamefixes-steam/1695793.py @@ -1,11 +1,12 @@ -""" Game fix for the Halo Reach mod tools Foundation gamemode. +"""Game fix for the Halo Reach mod tools Foundation gamemode. Standalone and Sapien seem to work just fine without d3dcompiler_47 and msxml3, although might be required at some deeper level. I just playtested it. - Oro, @orowith2os """ -#pylint: disable=C0103 +# pylint: disable=C0103 from protonfixes import util + def main(): util.protontricks('dotnet35') util.protontricks('dotnet45') diff --git a/gamefixes-steam/1695794.py b/gamefixes-steam/1695794.py index 1db15416..63e589fc 100755 --- a/gamefixes-steam/1695794.py +++ b/gamefixes-steam/1695794.py @@ -1,9 +1,9 @@ -""" Game fix Halo 3: ODST mod tools -""" -#pylint: disable=C0103 +"""Game fix Halo 3: ODST mod tools""" +# pylint: disable=C0103 from protonfixes import util + def main(): # Requires vcrun2019 to launch util.protontricks('vcrun2019') diff --git a/gamefixes-steam/1711950.py b/gamefixes-steam/1711950.py index c9313223..f3a0b9e4 100755 --- a/gamefixes-steam/1711950.py +++ b/gamefixes-steam/1711950.py @@ -1,11 +1,11 @@ -""" GWENT: Rogue Mage -""" -#pylint: disable=C0103 +"""GWENT: Rogue Mage""" +# pylint: disable=C0103 from protonfixes import util + def main(): - """ installs mfc140 + """installs mfc140 mfc140 is necessary to start the game up. GOG login happens inside the Steam overlay. diff --git a/gamefixes-steam/1715130.py b/gamefixes-steam/1715130.py index c1e8009d..50a4ad36 100755 --- a/gamefixes-steam/1715130.py +++ b/gamefixes-steam/1715130.py @@ -1,9 +1,9 @@ -""" Crysis Remastered -""" -#pylint: disable=C0103 +"""Crysis Remastered""" +# pylint: disable=C0103 from protonfixes import util + def main(): # Replace launcher with game exe in proton arguments util.protontricks('vcrun2019') diff --git a/gamefixes-steam/17300.py b/gamefixes-steam/17300.py index bab1e90c..4239bb3c 100755 --- a/gamefixes-steam/17300.py +++ b/gamefixes-steam/17300.py @@ -1,12 +1,11 @@ -""" Game fix for Crysis -""" -#pylint: disable=C0103 +"""Game fix for Crysis""" +# pylint: disable=C0103 from protonfixes import util + def main(): - """ Installs d3dcompiler_43, disables esync - """ + """Installs d3dcompiler_43, disables esync""" # https://github.com/ValveSoftware/Proton/issues/178#issuecomment-422986182 util.protontricks('d3dcompiler_43') diff --git a/gamefixes-steam/1795390.py b/gamefixes-steam/1795390.py index 3b884200..2641bcbd 100755 --- a/gamefixes-steam/1795390.py +++ b/gamefixes-steam/1795390.py @@ -1,9 +1,13 @@ -""" Game fix for Carnage Cross +"""Game fix for Carnage Cross Proton issue: https://github.com/ValveSoftware/Proton/issues/6645 """ -#pylint: disable=C0103 +# pylint: disable=C0103 from protonfixes import util + def main(): - util.replace_command('CarnageCross/CarnageCross', 'CarnageCross/CarnageCross/Binaries/Win64/CarnageCross-Win64-Shipping.exe') + util.replace_command( + 'CarnageCross/CarnageCross', + 'CarnageCross/CarnageCross/Binaries/Win64/CarnageCross-Win64-Shipping.exe', + ) diff --git a/gamefixes-steam/1829980.py b/gamefixes-steam/1829980.py index be97d223..a0f72713 100644 --- a/gamefixes-steam/1829980.py +++ b/gamefixes-steam/1829980.py @@ -1,7 +1,8 @@ -""" Game fix for Café Stella and the Reaper's Butterflies -""" +"""Game fix for Café Stella and the Reaper's Butterflies""" + from protonfixes import util + def main(): """Install quartz, wmp11, qasf diff --git a/gamefixes-steam/1873170.py b/gamefixes-steam/1873170.py index c9e7e030..272937c6 100644 --- a/gamefixes-steam/1873170.py +++ b/gamefixes-steam/1873170.py @@ -1,9 +1,9 @@ -""" Cease to Breathe +"""Cease to Breathe Replace included nwjs(0.71) wich doesn't work with 0.86 Fix cursor hitbox (set frame=false in package.json) Updated from 0.85 that didn't display custom cursors. """ -#pylint: disable=C0103 +# pylint: disable=C0103 import os import glob @@ -15,6 +15,7 @@ from protonfixes import util from protonfixes.logger import log + def main(): util.replace_command('CTB.exe', 'nw.exe') install_dir = glob.escape(util.get_game_install_path()) @@ -23,7 +24,7 @@ def main(): hashsum = 'ed2681847162e0fa457dd55e293b6f331ccd58acedd934a98e7fe1406c26dd4f' nwjs = os.path.basename(url) urllib.request.urlretrieve(url, nwjs) - with open(nwjs, "rb") as f: + with open(nwjs, 'rb') as f: nwjs_sum = hashlib.sha256(f.read()).hexdigest() if hashsum == nwjs_sum: with zipfile.ZipFile(nwjs, 'r') as zip_ref: @@ -33,4 +34,7 @@ def main(): shutil.rmtree(nwjs) else: log(f"{nwjs} checksum doesn't match, fix not applied.") - subprocess.call([f"sed -i 's/\"frame\": true/\"frame\": false/' \"{install_dir}/package.json\""], shell=True) + subprocess.call( + [f'sed -i \'s/"frame": true/"frame": false/\' "{install_dir}/package.json"'], + shell=True, + ) diff --git a/gamefixes-steam/1930.py b/gamefixes-steam/1930.py index 90a43e7a..41c5c740 100755 --- a/gamefixes-steam/1930.py +++ b/gamefixes-steam/1930.py @@ -1,8 +1,9 @@ -""" Two Worlds Epic Edition - ID 1930 - https://www.protondb.com/app/1930 +"""Two Worlds Epic Edition - ID 1930 +https://www.protondb.com/app/1930 """ from protonfixes import util + def main(): util.protontricks('xact') diff --git a/gamefixes-steam/19900.py b/gamefixes-steam/19900.py index 2dd38e1d..cda8d443 100755 --- a/gamefixes-steam/19900.py +++ b/gamefixes-steam/19900.py @@ -1,7 +1,8 @@ -""" Far Cry 2 -""" +"""Far Cry 2""" + + def main(): - """ Set CPU limit to upstream core count + """Set CPU limit to upstream core count See https://github.com/ValveSoftware/Proton/blob/proton_9.0/proton#L1154 Code block is intentionally empty because this game exists in EGS and diff --git a/gamefixes-steam/1999770.py b/gamefixes-steam/1999770.py index c80a4959..56563abe 100755 --- a/gamefixes-steam/1999770.py +++ b/gamefixes-steam/1999770.py @@ -1,11 +1,12 @@ -""" Atelier Ryza 3: Alchemist of the End & the Secret Key +"""Atelier Ryza 3: Alchemist of the End & the Secret Key Missing voices/sounds in cutscenes Requires disabling the gstreamer protonaudioconverterbin plugin to get full audio in cutscenes """ -#pylint: disable=C0103 +# pylint: disable=C0103 from protonfixes import util + def main(): util.disable_protonmediaconverter() diff --git a/gamefixes-steam/200490.py b/gamefixes-steam/200490.py index 7aa09f55..6b909570 100755 --- a/gamefixes-steam/200490.py +++ b/gamefixes-steam/200490.py @@ -1,11 +1,12 @@ -""" Memento Mori +"""Memento Mori wmp11 (Fixes missing logo videos and problems with working videos) hangs on logo without override """ -#pylint: disable=C0103 +# pylint: disable=C0103 from protonfixes import util + def main(): util.winedll_override('libvkd3d-1', 'n') util.protontricks('wmp11') diff --git a/gamefixes-steam/200940.py b/gamefixes-steam/200940.py index 76b31543..45ca23c4 100755 --- a/gamefixes-steam/200940.py +++ b/gamefixes-steam/200940.py @@ -1,12 +1,11 @@ -""" Game fix for Sonic CD -""" -#pylint: disable=C0103 +"""Game fix for Sonic CD""" +# pylint: disable=C0103 from protonfixes import util + def main(): - """ Installs d3dcompiler_43, d3dx9_43, mdx. Locks fps to 60. - """ + """Installs d3dcompiler_43, d3dx9_43, mdx. Locks fps to 60.""" util.protontricks('d3dcompiler_43') util.protontricks('d3dx9_43') util.protontricks('mdx') diff --git a/gamefixes-steam/201480.py b/gamefixes-steam/201480.py index 375da285..780ef8f9 100755 --- a/gamefixes-steam/201480.py +++ b/gamefixes-steam/201480.py @@ -1,13 +1,11 @@ -""" Game fix for Serious Sam: The Random Encounter -""" -#pylint: disable=C0103 +"""Game fix for Serious Sam: The Random Encounter""" +# pylint: disable=C0103 from protonfixes import util def main(): - """ Installs directmusic and directplay - """ + """Installs directmusic and directplay""" util.protontricks('dmband') util.protontricks('dmime') diff --git a/gamefixes-steam/204450.py b/gamefixes-steam/204450.py index 8f371629..b5336e4c 100644 --- a/gamefixes-steam/204450.py +++ b/gamefixes-steam/204450.py @@ -1,11 +1,10 @@ -""" Game fixes Call of Juarez: Gunslinger -""" -#pylint: disable=C0103 +"""Game fixes Call of Juarez: Gunslinger""" +# pylint: disable=C0103 from protonfixes import util + def main(): - """ installs wmp11 - """ + """installs wmp11""" # Fixes missing cutscenes util.protontricks('wmp11') diff --git a/gamefixes-steam/206480.py b/gamefixes-steam/206480.py index 8c9b54d0..b0619749 100755 --- a/gamefixes-steam/206480.py +++ b/gamefixes-steam/206480.py @@ -1,11 +1,12 @@ -""" Game fix Dungeons & Dragons Online -""" -#pylint: disable=C0103 +"""Game fix Dungeons & Dragons Online""" + +# pylint: disable=C0103 # from protonfixes import util + def main(): - """ Disable libglesv2 """ + """Disable libglesv2""" # gpu acelleration on wibed3d https://bugs.winehq.org/show_bug.cgi?id=44985 # Make the store work. diff --git a/gamefixes-steam/206500.py b/gamefixes-steam/206500.py index 9f296c93..3de9c960 100755 --- a/gamefixes-steam/206500.py +++ b/gamefixes-steam/206500.py @@ -1,9 +1,9 @@ -""" Game fix for AirMech Strike -""" +"""Game fix for AirMech Strike""" -#pylint: disable=C0103 +# pylint: disable=C0103 from protonfixes import util + def main(): util.append_argument('/dx11') diff --git a/gamefixes-steam/207350.py b/gamefixes-steam/207350.py index f53655f0..36d49a58 100755 --- a/gamefixes-steam/207350.py +++ b/gamefixes-steam/207350.py @@ -1,9 +1,9 @@ -""" Game fix for Ys Origin -""" -#pylint: disable=C0103 +"""Game fix for Ys Origin""" +# pylint: disable=C0103 from protonfixes import util + def main(): util.protontricks('directshow') util.protontricks('cinepak') diff --git a/gamefixes-steam/208650.py b/gamefixes-steam/208650.py index 8a2d6980..86884a25 100755 --- a/gamefixes-steam/208650.py +++ b/gamefixes-steam/208650.py @@ -1,12 +1,11 @@ -""" Game fix for Batman Arkham Knight -""" -#pylint: disable=C0103 +"""Game fix for Batman Arkham Knight""" +# pylint: disable=C0103 from protonfixes import util + def main(): - """ NVIDIA PhysX support. - """ + """NVIDIA PhysX support.""" # Enables NVIDIA PhysX in Batman Arkham Knight. util.protontricks('physx') diff --git a/gamefixes-steam/20920.py b/gamefixes-steam/20920.py index 996b4382..989c38d4 100755 --- a/gamefixes-steam/20920.py +++ b/gamefixes-steam/20920.py @@ -1,6 +1,7 @@ -""" The Witcher 2: Assassins of Kings Enhanced Edition -""" +"""The Witcher 2: Assassins of Kings Enhanced Edition""" + + def main(): - """ Witcher 2 chokes on more than 16 cores + """Witcher 2 chokes on more than 16 cores Code block is intentionally empty because this game exists in GOG (umu-20920) """ diff --git a/gamefixes-steam/211420.py b/gamefixes-steam/211420.py index 80ba08a8..81334b1e 100755 --- a/gamefixes-steam/211420.py +++ b/gamefixes-steam/211420.py @@ -1,18 +1,18 @@ -""" Game fix Dark Souls Prepare To Die Edition -""" -#pylint: disable=C0103 +"""Game fix Dark Souls Prepare To Die Edition""" +# pylint: disable=C0103 from protonfixes import util + def main(): - """ Needs WMP9, devenum, quartz, dinput and win7 """ + """Needs WMP9, devenum, quartz, dinput and win7""" - #For main menu, intro and outro playback + # For main menu, intro and outro playback util.protontricks('wmp9_x86_64') util.protontricks('devenum') util.protontricks('quartz') - #In case if someone wishes to use DSfix + # In case if someone wishes to use DSfix util.protontricks('dinput8') util.winedll_override('dinput8', 'n') diff --git a/gamefixes-steam/212500.py b/gamefixes-steam/212500.py index b25ea4c5..5bde544c 100755 --- a/gamefixes-steam/212500.py +++ b/gamefixes-steam/212500.py @@ -1,11 +1,12 @@ -""" Game fix The Lord of the Rings Online -""" -#pylint: disable=C0103 +"""Game fix The Lord of the Rings Online""" + +# pylint: disable=C0103 # from protonfixes import util + def main(): - """ Disable libglesv2 """ + """Disable libglesv2""" ## gpu acelleration on wined3d https://bugs.winehq.org/show_bug.cgi?id=44985 # Make the store work. diff --git a/gamefixes-steam/213330.py b/gamefixes-steam/213330.py index c75606e5..10c6a564 100755 --- a/gamefixes-steam/213330.py +++ b/gamefixes-steam/213330.py @@ -1,10 +1,9 @@ -""" Game fix for LEGO Batman 2: DC Super Heroes -""" -#pylint: disable=C0103 +"""Game fix for LEGO Batman 2: DC Super Heroes""" +# pylint: disable=C0103 from protonfixes import util + def main(): - """ installs d3dx9_41 - """ + """installs d3dx9_41""" util.protontricks('d3dx9_41') diff --git a/gamefixes-steam/2138090.py b/gamefixes-steam/2138090.py index c6e75c47..f4434323 100755 --- a/gamefixes-steam/2138090.py +++ b/gamefixes-steam/2138090.py @@ -1,12 +1,13 @@ -""" Atelier Marie Remake: The Alchemist of Salburg +"""Atelier Marie Remake: The Alchemist of Salburg Missing voices/sounds in cutscenes Requires disabling the gstreamer protonaudioconverterbin plugin to get full audio in cutscenes. fixed by Swish in Protondb further stolen from marianoag by bitwolf """ -#pylint: disable=C0103 +# pylint: disable=C0103 from protonfixes import util + def main(): util.disable_protonmediaconverter() diff --git a/gamefixes-steam/214510.py b/gamefixes-steam/214510.py index 99e02d49..c6ae2460 100755 --- a/gamefixes-steam/214510.py +++ b/gamefixes-steam/214510.py @@ -1,11 +1,10 @@ -""" Game fix for LEGO The Lord of the Rings -""" -#pylint: disable=C0103 +"""Game fix for LEGO The Lord of the Rings""" +# pylint: disable=C0103 from protonfixes import util + def main(): - """ installs d3dx9_41 - """ + """installs d3dx9_41""" util.protontricks('d3dx9_41') diff --git a/gamefixes-steam/214950.py b/gamefixes-steam/214950.py index b5ee6d53..a4bde992 100755 --- a/gamefixes-steam/214950.py +++ b/gamefixes-steam/214950.py @@ -1,11 +1,11 @@ -""" Game fix for Total War: Rome II -""" +"""Game fix for Total War: Rome II""" from protonfixes import util + def main(): - """ installs d3dx11_42, d3dcompiler_42, directplay - Disable esync and fsync + """installs d3dx11_42, d3dcompiler_42, directplay + Disable esync and fsync """ util.protontricks('d3dx11_42') util.protontricks('d3dcompiler_42') diff --git a/gamefixes-steam/215280.py b/gamefixes-steam/215280.py index f63d15c0..b5b1c7c9 100755 --- a/gamefixes-steam/215280.py +++ b/gamefixes-steam/215280.py @@ -1,9 +1,9 @@ -""" Game fix for Secret World Legends -""" -#pylint: disable=C0103 +"""Game fix for Secret World Legends""" +# pylint: disable=C0103 from protonfixes import util + def main(): util.protontricks('d3dx9_43') util.protontricks('d3dx11_43') diff --git a/gamefixes-steam/21680.py b/gamefixes-steam/21680.py index f2a7725d..7a2dad38 100755 --- a/gamefixes-steam/21680.py +++ b/gamefixes-steam/21680.py @@ -1,10 +1,9 @@ -""" Bionic Commander Rearmed -""" -#pylint: disable=C0103 +"""Bionic Commander Rearmed""" +# pylint: disable=C0103 from protonfixes import util + def main(): - """ Installs physx - """ + """Installs physx""" util.protontricks('physx') diff --git a/gamefixes-steam/2183070.py b/gamefixes-steam/2183070.py index 277d9aef..a5bfd4e7 100755 --- a/gamefixes-steam/2183070.py +++ b/gamefixes-steam/2183070.py @@ -1,11 +1,10 @@ -""" Game fix for Tokyo Necro -""" +"""Game fix for Tokyo Necro""" from protonfixes import util + def main(): - """ installs xact, disable ESYNC, disable FSYNC - """ + """installs xact, disable ESYNC, disable FSYNC""" # Fixes crash after typing then entering or clicking `search` within the game's terminal menu util.protontricks('xact') diff --git a/gamefixes-steam/219030.py b/gamefixes-steam/219030.py index 8a11c5dc..d5a73f6e 100755 --- a/gamefixes-steam/219030.py +++ b/gamefixes-steam/219030.py @@ -1,9 +1,9 @@ -""" Game fix for Ys Origin Demo -""" -#pylint: disable=C0103 +"""Game fix for Ys Origin Demo""" +# pylint: disable=C0103 from protonfixes import util + def main(): util.protontricks('directshow') util.protontricks('cinepak') diff --git a/gamefixes-steam/219990.py b/gamefixes-steam/219990.py index a3a12319..ef67dd18 100755 --- a/gamefixes-steam/219990.py +++ b/gamefixes-steam/219990.py @@ -1,9 +1,9 @@ -""" Game fix for Grim Dawn -""" -#pylint: disable=C0103 +"""Game fix for Grim Dawn""" +# pylint: disable=C0103 from protonfixes import util + def main(): # Fix black screen. Only needed in a Wine prefix that lacks the DirectX Redist installation that comes with the game installer. util.protontricks('d3dcompiler_43') diff --git a/gamefixes-steam/220240.py b/gamefixes-steam/220240.py index c37fcea0..d0db4801 100755 --- a/gamefixes-steam/220240.py +++ b/gamefixes-steam/220240.py @@ -1,12 +1,10 @@ -""" FarCry 3 -""" -#pylint: disable=C0103 +"""FarCry 3""" +# pylint: disable=C0103 from protonfixes import util def main(): - """ FarCry 3 chokes on more than 24 cores - """ + """FarCry 3 chokes on more than 24 cores""" util.set_cpu_topology_limit(24) diff --git a/gamefixes-steam/2229850.py b/gamefixes-steam/2229850.py index 98712816..0ffc2a98 100644 --- a/gamefixes-steam/2229850.py +++ b/gamefixes-steam/2229850.py @@ -1,31 +1,31 @@ -""" Game fix for Command & Conquer Red Alert™ 2 and Yuri's Revenge™ -""" -#pylint: disable=C0103 +"""Game fix for Command & Conquer Red Alert™ 2 and Yuri's Revenge™""" +# pylint: disable=C0103 import os from protonfixes import util from protonfixes.logger import log + def main(): - """ Install and launch the CnCNet Launcher + """Install and launch the CnCNet Launcher - It fixes several issues, allows multiplayer and provides a working UI, - while the game has sometimes problems like missing or shifted buttons. + It fixes several issues, allows multiplayer and provides a working UI, + while the game has sometimes problems like missing or shifted buttons. - The game will just show a black screen without cnc-ddraw or the patch in place. + The game will just show a black screen without cnc-ddraw or the patch in place. """ # Opt out of CnCNet with 'NO_CNCNET=1 %command%' no_cncnet = os.getenv('NO_CNCNET', '') if str.lower(no_cncnet) in ['y', 'yes', 'true', 'on', '1']: - log('Skipping CnCNet on user\'s request.') + log("Skipping CnCNet on user's request.") use_cnc_ddraw() return # Install the CnCNet Launcher if not util.checkinstalled('cncnet_ra2') and not util.protontricks('cncnet_ra2'): - log('Failed to install CnCNet Launcher, let\'s try cnc-ddraw.') + log("Failed to install CnCNet Launcher, let's try cnc-ddraw.") use_cnc_ddraw() # CnCNet Launcher is in place, run it @@ -34,9 +34,9 @@ def main(): util.replace_command('Ra2.exe', 'CnCNetYRLauncher.exe') util.replace_command('RA2MD.exe', 'CnCNetYRLauncher.exe') + def use_cnc_ddraw(): - """ Install cnc-ddraw, the current replacement from EA isn't working. - """ + """Install cnc-ddraw, the current replacement from EA isn't working.""" log('Using cnc-ddraw.') diff --git a/gamefixes-steam/22370.py b/gamefixes-steam/22370.py index f86bf89d..837ac540 100755 --- a/gamefixes-steam/22370.py +++ b/gamefixes-steam/22370.py @@ -1,13 +1,12 @@ -""" Game fix for Fallout 3 -""" -#pylint: disable=C0103 +"""Game fix for Fallout 3""" +# pylint: disable=C0103 import os from protonfixes import util + def main(): - """ Run script extender if it exists. - """ + """Run script extender if it exists.""" if os.path.isfile(os.path.join(os.getcwd(), 'fose_loader.exe')): util.replace_command('FalloutLauncher.exe', 'fose_loader.exe') diff --git a/gamefixes-steam/223750.py b/gamefixes-steam/223750.py index 904da9ba..9ae3b5a3 100755 --- a/gamefixes-steam/223750.py +++ b/gamefixes-steam/223750.py @@ -1,6 +1,5 @@ -""" Fixes for DCS World Steam Edition -""" -#pylint: disable=C0103 +"""Fixes for DCS World Steam Edition""" +# pylint: disable=C0103 from protonfixes import util diff --git a/gamefixes-steam/224960.py b/gamefixes-steam/224960.py index 8e620dd6..47ec98f7 100755 --- a/gamefixes-steam/224960.py +++ b/gamefixes-steam/224960.py @@ -1,11 +1,11 @@ -""" Game fix for Tomb Raider I -""" +"""Game fix for Tomb Raider I""" # pylint: disable=C0103 from protonfixes import util + def main(): - """ Enable Glide emulation in dosbox config """ + """Enable Glide emulation in dosbox config""" conf_dict = {'glide': {'glide': 'emu'}} util.create_dosbox_conf('glide_fix.conf', conf_dict) diff --git a/gamefixes-steam/225640.py b/gamefixes-steam/225640.py index 41c362ff..dd54dc34 100755 --- a/gamefixes-steam/225640.py +++ b/gamefixes-steam/225640.py @@ -1,12 +1,10 @@ -""" Game fix for Sacred 2 Gold -""" -#pylint: disable=C0103 +"""Game fix for Sacred 2 Gold""" +# pylint: disable=C0103 from protonfixes import util def main(): - """ Install physx - """ + """Install physx""" util.protontricks('physx') diff --git a/gamefixes-steam/227320.py b/gamefixes-steam/227320.py index bdb3f7df..0dfd7278 100755 --- a/gamefixes-steam/227320.py +++ b/gamefixes-steam/227320.py @@ -1,12 +1,11 @@ -""" Game fix for You Need a Budget 4 -""" -#pylint: disable=C0103 +"""Game fix for You Need a Budget 4""" +# pylint: disable=C0103 from protonfixes import util + def main(): - """ Installs corefonts - """ + """Installs corefonts""" # https://github.com/ValveSoftware/Proton/issues/7 util.protontricks('corefonts') diff --git a/gamefixes-steam/230820.py b/gamefixes-steam/230820.py index fcb9801c..9e95d79a 100755 --- a/gamefixes-steam/230820.py +++ b/gamefixes-steam/230820.py @@ -1,10 +1,11 @@ -""" The Night of the Rabbit +"""The Night of the Rabbit https://github.com/ValveSoftware/Proton/issues/1412 -No cutscene audio in Daedalic Games (Memoria, The Night of the Rabbit, A New Beginning - Final Cut) (105000 230820 243200) #1412 +No cutscene audio in Daedalic Games (Memoria, The Night of the Rabbit, A New Beginning - Final Cut) (105000 230820 243200) #1412 """ -#pylint: disable=C0103 +# pylint: disable=C0103 from protonfixes import util + def main(): util.winedll_override('xaudio2_7', 'd') diff --git a/gamefixes-steam/231990.py b/gamefixes-steam/231990.py index e77821e7..5db4c9a5 100755 --- a/gamefixes-steam/231990.py +++ b/gamefixes-steam/231990.py @@ -1,12 +1,12 @@ -""" Game fix for Spider-Man: Shattered Dimensions -""" -#pylint: disable=C0103 +"""Game fix for Spider-Man: Shattered Dimensions""" + +# pylint: disable=C0103 # from protonfixes import util + def main(): - """ installs d3dx9_43, xact - """ + """installs d3dx9_43, xact""" # https://steamcommunity.com/app/231990/discussions/0/3198117312260185786/#c3470604115208907456 util.protontricks('d3dx9_43') diff --git a/gamefixes-steam/233270.py b/gamefixes-steam/233270.py index 66f783e1..0dedc89f 100755 --- a/gamefixes-steam/233270.py +++ b/gamefixes-steam/233270.py @@ -1,12 +1,10 @@ -""" Far Cry Blood Dragon -""" -#pylint: disable=C0103 +"""Far Cry Blood Dragon""" +# pylint: disable=C0103 from protonfixes import util def main(): - """ dx11 version is broken - """ + """dx11 version is broken""" util.set_cpu_topology_limit(24) diff --git a/gamefixes-steam/23460.py b/gamefixes-steam/23460.py index a8de3450..254cec22 100644 --- a/gamefixes-steam/23460.py +++ b/gamefixes-steam/23460.py @@ -1,18 +1,19 @@ -""" Ceville +"""Ceville Works with dotnet35sp1 only, now without needing Proton5 -Videos still don't work. +Videos still don't work. """ -#pylint: disable=C0103 +# pylint: disable=C0103 import os import subprocess from protonfixes import util + def main(): util.protontricks('dotnet35sp1') - #Videos play and audio works but screen is black. - #util.protontricks('quartz') - #util.protontricks('klite') + # Videos play and audio works but screen is black. + # util.protontricks('quartz') + # util.protontricks('klite') if os.path.isdir('./data/shared/videos'): subprocess.call(['mv', './data/shared/videos', './data/shared/_videos']) util.winedll_override('libvkd3d-1', 'n') diff --git a/gamefixes-steam/237890.py b/gamefixes-steam/237890.py index 4b2f701f..d6e79baf 100755 --- a/gamefixes-steam/237890.py +++ b/gamefixes-steam/237890.py @@ -1,9 +1,9 @@ -""" Game fix for Agarest: Generations of War -""" -#pylint: disable=C0103 +"""Game fix for Agarest: Generations of War""" +# pylint: disable=C0103 from protonfixes import util + def main(): util.protontricks('wmp9') util.winedll_override('winegstreamer', '') diff --git a/gamefixes-steam/2399220.py b/gamefixes-steam/2399220.py index f21c7062..35078b62 100755 --- a/gamefixes-steam/2399220.py +++ b/gamefixes-steam/2399220.py @@ -1,11 +1,10 @@ -""" Game fix for NUKITASHI -""" +"""Game fix for NUKITASHI""" from protonfixes import util + def main(): - """ Disable protonaudioconverterbin plugin - """ + """Disable protonaudioconverterbin plugin""" # Fixes audio not playing for in-game videos util.disable_protonmediaconverter() diff --git a/gamefixes-steam/240600.py b/gamefixes-steam/240600.py index 4210926e..45c3e77f 100755 --- a/gamefixes-steam/240600.py +++ b/gamefixes-steam/240600.py @@ -1,10 +1,10 @@ -""" Game fix for MotorGP -""" +"""Game fix for MotorGP""" -#pylint: disable=C0103 +# pylint: disable=C0103 from protonfixes import util + def main(): util.protontricks('d3dcompiler_43') util.protontricks('d3dx9_43') diff --git a/gamefixes-steam/242760.py b/gamefixes-steam/242760.py index 1feec2b8..d8a32416 100755 --- a/gamefixes-steam/242760.py +++ b/gamefixes-steam/242760.py @@ -1,5 +1,4 @@ -""" Game fix for The Forest -""" +"""Game fix for The Forest""" # pylint: disable=C0103 @@ -7,8 +6,8 @@ def main(): - """ If SMT/HT is enabled, The Forest runs with extremely choppy. Just bad. - We can fix it by setting the topology to the physical cores / core count. - TODO: This fix was not tested with more than 10 physical cores yet. + """If SMT/HT is enabled, The Forest runs with extremely choppy. Just bad. + We can fix it by setting the topology to the physical cores / core count. + TODO: This fix was not tested with more than 10 physical cores yet. """ util.set_cpu_topology_nosmt() diff --git a/gamefixes-steam/243200.py b/gamefixes-steam/243200.py index a7658d58..fa185aae 100755 --- a/gamefixes-steam/243200.py +++ b/gamefixes-steam/243200.py @@ -1,10 +1,11 @@ -""" The Dark Eye: Memoria +"""The Dark Eye: Memoria https://github.com/ValveSoftware/Proton/issues/1412 -No cutscene audio in Daedalic Games (Memoria, The Night of the Rabbit, A New Beginning - Final Cut) (105000 230820 243200) #1412 +No cutscene audio in Daedalic Games (Memoria, The Night of the Rabbit, A New Beginning - Final Cut) (105000 230820 243200) #1412 """ -#pylint: disable=C0103 +# pylint: disable=C0103 from protonfixes import util + def main(): util.winedll_override('xaudio2_7', 'd') diff --git a/gamefixes-steam/244210.py b/gamefixes-steam/244210.py index 0c78026f..e2b8ab21 100755 --- a/gamefixes-steam/244210.py +++ b/gamefixes-steam/244210.py @@ -1,9 +1,9 @@ -""" Game fix for Assetto Corsa -""" -#pylint: disable=C0103 +"""Game fix for Assetto Corsa""" +# pylint: disable=C0103 from protonfixes import util + def main(): """Fixes default launcher and ACM.""" diff --git a/gamefixes-steam/244850.py b/gamefixes-steam/244850.py index 4d850c88..67e44ac1 100755 --- a/gamefixes-steam/244850.py +++ b/gamefixes-steam/244850.py @@ -1,5 +1,4 @@ -""" Game fix for Space Engineers -""" +"""Game fix for Space Engineers""" # pylint: disable=C0103 @@ -9,11 +8,11 @@ def main(): util.protontricks('xaudio29') - base_attibutte = "" + base_attibutte = '' game_opts = """ """ - util.set_xml_options(base_attibutte, game_opts, 'SpaceEngineers.exe.config','game') + util.set_xml_options(base_attibutte, game_opts, 'SpaceEngineers.exe.config', 'game') util.append_argument('-skipintro') diff --git a/gamefixes-steam/2458530.py b/gamefixes-steam/2458530.py index 62b30baf..c22479ff 100644 --- a/gamefixes-steam/2458530.py +++ b/gamefixes-steam/2458530.py @@ -1,7 +1,8 @@ -""" Game fix for Sanoba Witch FHD Edition -""" +"""Game fix for Sanoba Witch FHD Edition""" + from protonfixes import util + def main(): """Install quartz, wmp11, qasf diff --git a/gamefixes-steam/2475980.py b/gamefixes-steam/2475980.py index d7879cd1..cc70c681 100644 --- a/gamefixes-steam/2475980.py +++ b/gamefixes-steam/2475980.py @@ -1,7 +1,7 @@ -""" Gobliiins 5 +"""Gobliiins 5 Setup doesn't work and language is default to french """ -#pylint: disable=C0103 +# pylint: disable=C0103 import os import sys @@ -9,13 +9,26 @@ import glob from protonfixes import util + def main(): - if sys.argv[2].find("winsetup")!=-1: + if sys.argv[2].find('winsetup') != -1: os.chdir(sys.argv[2][-29:-13]) install_dir = glob.escape(util.get_game_install_path()) - with open(os.path.join(install_dir,'Gobliiins5-Part4/acsetup.cfg'), 'r', encoding='utf-8') as f: + with open( + os.path.join(install_dir, 'Gobliiins5-Part4/acsetup.cfg'), 'r', encoding='utf-8' + ) as f: if 'Linear' not in f.read(): - for i in range(1,5): - subprocess.call([f"sed -i 's/filter=stdscale/filter=Linear/' {install_dir}/Gobliiins5-Part{i}/acsetup.cfg"], shell=True) - subprocess.call([f"sed -i 's/translation.*/translation=English/' {install_dir}/Gobliiins5-Part{i}/acsetup.cfg"], shell=True) + for i in range(1, 5): + subprocess.call( + [ + f"sed -i 's/filter=stdscale/filter=Linear/' {install_dir}/Gobliiins5-Part{i}/acsetup.cfg" + ], + shell=True, + ) + subprocess.call( + [ + f"sed -i 's/translation.*/translation=English/' {install_dir}/Gobliiins5-Part{i}/acsetup.cfg" + ], + shell=True, + ) diff --git a/gamefixes-steam/2507620.py b/gamefixes-steam/2507620.py index 9b8c4a4c..416fd7ec 100644 --- a/gamefixes-steam/2507620.py +++ b/gamefixes-steam/2507620.py @@ -1,12 +1,11 @@ -""" Game fix for The Quintessential Quintuplets - Five Memories Spent With You -""" -#pylint: disable=C0103 +"""Game fix for The Quintessential Quintuplets - Five Memories Spent With You""" +# pylint: disable=C0103 from protonfixes import util + def main(): - """ Install xact - """ + """Install xact""" # Fixes audio not playing and some background music util.protontricks('xact') diff --git a/gamefixes-steam/251150.py b/gamefixes-steam/251150.py index 3c275e0c..8953044e 100644 --- a/gamefixes-steam/251150.py +++ b/gamefixes-steam/251150.py @@ -1,11 +1,11 @@ -""" Game fix for The Legend of Heroes: Trails in the Sky -""" +"""Game fix for The Legend of Heroes: Trails in the Sky""" # pylint: disable=C0103 from protonfixes import util + def main(): - util.protontricks('quartz') # Cutscene fixes + util.protontricks('quartz') # Cutscene fixes util.protontricks('amstream') util.protontricks('lavfilters') - util.winedll_override('dinput8', 'n,b') # Set for the SoraVoice mod + util.winedll_override('dinput8', 'n,b') # Set for the SoraVoice mod diff --git a/gamefixes-steam/251290.py b/gamefixes-steam/251290.py index 5532f4f7..260596a2 100644 --- a/gamefixes-steam/251290.py +++ b/gamefixes-steam/251290.py @@ -1,11 +1,11 @@ -""" Game fix for The Legend of Heroes: Trails in the Sky SC -""" +"""Game fix for The Legend of Heroes: Trails in the Sky SC""" # pylint: disable=C0103 from protonfixes import util + def main(): - util.protontricks('quartz') # Cutscene fixes + util.protontricks('quartz') # Cutscene fixes util.protontricks('amstream') util.protontricks('lavfilters') - util.winedll_override('dinput8', 'n,b') # Set for the SoraVoice mod + util.winedll_override('dinput8', 'n,b') # Set for the SoraVoice mod diff --git a/gamefixes-steam/252430.py b/gamefixes-steam/252430.py index b3dc387e..f3a2a522 100755 --- a/gamefixes-steam/252430.py +++ b/gamefixes-steam/252430.py @@ -1,11 +1,10 @@ -""" Game fix for Dusty Revenge: Co-Op Edition -""" -#pylint: disable=C0103 +"""Game fix for Dusty Revenge: Co-Op Edition""" +# pylint: disable=C0103 from protonfixes import util + def main(): - """ Install vcrun2010 - """ + """Install vcrun2010""" util.protontricks('vcrun2010') util.protontricks('dsound') diff --git a/gamefixes-steam/256330.py b/gamefixes-steam/256330.py index ff040bae..f8d55c3a 100644 --- a/gamefixes-steam/256330.py +++ b/gamefixes-steam/256330.py @@ -1,16 +1,16 @@ -""" WRC 4 -""" -#pylint: disable=C0103 +"""WRC 4""" +# pylint: disable=C0103 from protonfixes import util + def main(): - #Black screen without it + # Black screen without it util.protontricks('d3dx9_42') util.protontricks('d3dx9_43') - #Fixes background videos + # Fixes background videos util.protontricks('wmp11') - #Fixes audio sliders in options + # Fixes audio sliders in options util.protontricks('xact') diff --git a/gamefixes-steam/257420.py b/gamefixes-steam/257420.py index be81de8b..10ab6d64 100755 --- a/gamefixes-steam/257420.py +++ b/gamefixes-steam/257420.py @@ -1,16 +1,15 @@ -""" Game fix for Serious Sam 4 -""" -#pylint: disable=C0103 +"""Game fix for Serious Sam 4""" +# pylint: disable=C0103 import os import subprocess + def main(): - """ Graphics API workaround - """ + """Graphics API workaround""" if not os.path.isfile('UserCfg.lua.bak'): subprocess.call(['cp', 'UserCfg.lua', 'UserCfg.lua.bak']) # Assume UTF-8 - with open('UserCfg.lua', "a+", encoding="utf-8") as f: - f.write("sfx_strAPI = \"OpenAL\";") + with open('UserCfg.lua', 'a+', encoding='utf-8') as f: + f.write('sfx_strAPI = "OpenAL";') diff --git a/gamefixes-steam/260130.py b/gamefixes-steam/260130.py index 7fd6f282..1dac0e49 100755 --- a/gamefixes-steam/260130.py +++ b/gamefixes-steam/260130.py @@ -1,9 +1,9 @@ -""" Game fix for Agarest Zero -""" -#pylint: disable=C0103 +"""Game fix for Agarest Zero""" +# pylint: disable=C0103 from protonfixes import util + def main(): util.protontricks('wmp9') util.disable_protonmediaconverter() diff --git a/gamefixes-steam/261510.py b/gamefixes-steam/261510.py index 31553000..f5396f7d 100755 --- a/gamefixes-steam/261510.py +++ b/gamefixes-steam/261510.py @@ -1,12 +1,11 @@ -""" Game fix for Tesla Effect -""" -#pylint: disable=C0103 +"""Game fix for Tesla Effect""" +# pylint: disable=C0103 from protonfixes import util + def main(): - """ Install corefonts - """ + """Install corefonts""" # https://github.com/ValveSoftware/Proton/issues/1317 util.protontricks('corefonts') diff --git a/gamefixes-steam/2620.py b/gamefixes-steam/2620.py index 4f0238a8..e8ac94a9 100755 --- a/gamefixes-steam/2620.py +++ b/gamefixes-steam/2620.py @@ -1,12 +1,11 @@ -""" Game fix for Call of Duty (2003) -""" -#pylint: disable=C0103 +"""Game fix for Call of Duty (2003)""" +# pylint: disable=C0103 from protonfixes import util + def main(): - """ Set Mesa env vars - """ + """Set Mesa env vars""" # https://github.com/ValveSoftware/Proton/pull/1423/commits/1a1d25c7d95691e37c94aea4e5f94e0c917aba6f util.set_environment('MESA_EXTENSION_MAX_YEAR', '2003') diff --git a/gamefixes-steam/266840.py b/gamefixes-steam/266840.py index 116fd319..bafe5374 100755 --- a/gamefixes-steam/266840.py +++ b/gamefixes-steam/266840.py @@ -1,13 +1,13 @@ -""" Game fix for Age of Mythology: Extended Edition +"""Game fix for Age of Mythology: Extended Edition Source: https://github.com/JamesHealdUK/protonfixes/blob/master/fixes/266840.sh """ -#pylint: disable=C0103 +# pylint: disable=C0103 from protonfixes import util + def main(): - """ Changes the proton argument from the launcher to the game - """ + """Changes the proton argument from the launcher to the game""" # Replace launcher with game exe in proton arguments util.replace_command('Launcher.exe', 'aomx.exe') diff --git a/gamefixes-steam/268050.py b/gamefixes-steam/268050.py index f1500ea7..b7404a1b 100755 --- a/gamefixes-steam/268050.py +++ b/gamefixes-steam/268050.py @@ -1,12 +1,11 @@ -""" Game fix for The Evil Within(268050) -""" -#pylint: disable=C0103 +"""Game fix for The Evil Within(268050)""" +# pylint: disable=C0103 from protonfixes import util + def main(): - """ Changes the proton argument from the launcher to the game - """ + """Changes the proton argument from the launcher to the game""" util.protontricks('win7') diff --git a/gamefixes-steam/271590.py b/gamefixes-steam/271590.py index 0d3b8588..a6dc5f64 100755 --- a/gamefixes-steam/271590.py +++ b/gamefixes-steam/271590.py @@ -1,11 +1,10 @@ -""" Game fix for GTAV -""" -#pylint: disable=C0103 +"""Game fix for GTAV""" + +# pylint: disable=C0103 from protonfixes import util def main(): - """ Game fix for GTAV - """ + """Game fix for GTAV""" # Set SteamGameId so that non-steam versions can pick up steam-specific fixes in proton's wine code - util.set_environment('SteamGameId','271590') + util.set_environment('SteamGameId', '271590') diff --git a/gamefixes-steam/282900.py b/gamefixes-steam/282900.py index 46f0bf6d..fcaf9574 100755 --- a/gamefixes-steam/282900.py +++ b/gamefixes-steam/282900.py @@ -1,10 +1,11 @@ -""" Hyperdimension Neptunia Re;Birth1 +"""Hyperdimension Neptunia Re;Birth1 Poor performance on some AMD hardware """ -#pylint: disable=C0103 +# pylint: disable=C0103 from protonfixes import util + def main(): util.set_environment('radeonsi_disable_sam', 'true') util.set_environment('AMD_DEBUG', 'nowc') diff --git a/gamefixes-steam/284160.py b/gamefixes-steam/284160.py index d4495ccd..92132b96 100755 --- a/gamefixes-steam/284160.py +++ b/gamefixes-steam/284160.py @@ -1,12 +1,11 @@ -""" Game fix for BeamNG.drive -""" -#pylint: disable=C0103 +"""Game fix for BeamNG.drive""" +# pylint: disable=C0103 from protonfixes import util + def main(): - """ installs d3dx9_43, d3dcompiler_43, d3dx11_43, d3dcompiler_47 - """ + """installs d3dx9_43, d3dcompiler_43, d3dx11_43, d3dcompiler_47""" # https://github.com/ValveSoftware/Proton/issues/544#issuecomment-826150012 util.protontricks('d3dx9_43') diff --git a/gamefixes-steam/286360.py b/gamefixes-steam/286360.py index 339d10cc..2d61964d 100755 --- a/gamefixes-steam/286360.py +++ b/gamefixes-steam/286360.py @@ -1,11 +1,12 @@ -""" Shadows on the Vatican - Act I: Greed +"""Shadows on the Vatican - Act I: Greed Launcher keeps it's process running in the background but nothing shows up """ -#pylint: disable=C0103 +# pylint: disable=C0103 import os from protonfixes import util + def main(): util.replace_command('SotV_Launcher.exe', 'hd/SotV1.exe') os.chdir('hd') diff --git a/gamefixes-steam/287310.py b/gamefixes-steam/287310.py index 999aa3e6..1d68d1bf 100755 --- a/gamefixes-steam/287310.py +++ b/gamefixes-steam/287310.py @@ -1,13 +1,12 @@ -""" Game fix for Re-Volt (287310) -""" +"""Game fix for Re-Volt (287310)""" -#pylint: disable=C0103 +# pylint: disable=C0103 from protonfixes import util + def main(): - """ Sets the necessary dll overrides for the wrappers that are shipped with the game - """ + """Sets the necessary dll overrides for the wrappers that are shipped with the game""" # Set overrides util.winedll_override('ddraw', 'n') diff --git a/gamefixes-steam/287450.py b/gamefixes-steam/287450.py index 8916b154..2fcc1987 100755 --- a/gamefixes-steam/287450.py +++ b/gamefixes-steam/287450.py @@ -1,14 +1,14 @@ -""" Game fix for Rise of Nations: Extended Edition +"""Game fix for Rise of Nations: Extended Edition Source: https://github.com/simons-public/protonfixes/issues/24#issue-372384148 """ -#pylint: disable=C0103 +# pylint: disable=C0103 from protonfixes import util + def main(): - """ Installs crypt32 and and bypasses launcher - """ + """Installs crypt32 and and bypasses launcher""" # Install crypt32 (not required for Proton 3.16-3 and up) util.protontricks('crypt32') diff --git a/gamefixes-steam/289130.py b/gamefixes-steam/289130.py index 7e9c8cbf..692890fe 100755 --- a/gamefixes-steam/289130.py +++ b/gamefixes-steam/289130.py @@ -1,11 +1,10 @@ -""" Game fix for Endless Legend -""" -#pylint: disable=C0103 +"""Game fix for Endless Legend""" +# pylint: disable=C0103 from protonfixes import util + def main(): - """ Enable -useembedded to get past loading hang - """ + """Enable -useembedded to get past loading hang""" # Enable preload options util.append_argument('-useembedded') diff --git a/gamefixes-steam/292410.py b/gamefixes-steam/292410.py index a4aab892..f33025ba 100644 --- a/gamefixes-steam/292410.py +++ b/gamefixes-steam/292410.py @@ -1,9 +1,11 @@ -""" Street Racing Syndicate -""" -#pylint: disable=C0103 +"""Street Racing Syndicate""" +# pylint: disable=C0103 from protonfixes import util + def main(): - util.protontricks('lavfilters') # fix videos - util.winedll_override('d3d9', 'n,b') # in case user uses the ThirteenAG widescreen fix + util.protontricks('lavfilters') # fix videos + util.winedll_override( + 'd3d9', 'n,b' + ) # in case user uses the ThirteenAG widescreen fix diff --git a/gamefixes-steam/294700.py b/gamefixes-steam/294700.py index 72fcbc61..4fdeb44b 100755 --- a/gamefixes-steam/294700.py +++ b/gamefixes-steam/294700.py @@ -1,17 +1,29 @@ -""" Game fix for Putt-Putt: Pep's Birthday Surprise -""" +"""Game fix for Putt-Putt: Pep's Birthday Surprise""" -#pylint: disable=C0103 +# pylint: disable=C0103 import os from protonfixes import util + # Putt-Putt: PBS doesn't run unless there is a CD-ROM drive attached. def main(): dosdevice = os.path.join(util.protonprefix(), 'dosdevices/r:') if not os.path.exists(dosdevice): - os.symlink('/tmp', dosdevice) #create symlink for dosdevices + os.symlink('/tmp', dosdevice) # create symlink for dosdevices - util.regedit_add('HKLM\\System\\MountedDevices','\\??\\Volume{00000000-0000-0000-0000-000000000052}','REG_BINARY','2f746d7000') #sets up ID? exported from regedit - util.regedit_add('HKLM\\System\\MountedDevices','\\DosDevices\\R:','REG_BINARY','5c005c002e005c0064003a000000') #sets up dosdevice? exported from regedit - util.regedit_add('HKLM\\Software\\Wine\\Drives','r:','REG_SZ','cdrom', True) #designate drive as CD-ROM, requires 64-bit access + util.regedit_add( + 'HKLM\\System\\MountedDevices', + '\\??\\Volume{00000000-0000-0000-0000-000000000052}', + 'REG_BINARY', + '2f746d7000', + ) # sets up ID? exported from regedit + util.regedit_add( + 'HKLM\\System\\MountedDevices', + '\\DosDevices\\R:', + 'REG_BINARY', + '5c005c002e005c0064003a000000', + ) # sets up dosdevice? exported from regedit + util.regedit_add( + 'HKLM\\Software\\Wine\\Drives', 'r:', 'REG_SZ', 'cdrom', True + ) # designate drive as CD-ROM, requires 64-bit access diff --git a/gamefixes-steam/298110.py b/gamefixes-steam/298110.py index c150093b..d6e5af7a 100755 --- a/gamefixes-steam/298110.py +++ b/gamefixes-steam/298110.py @@ -1,13 +1,11 @@ -""" FarCry 4 -""" -#pylint: disable=C0103 +"""FarCry 4""" +# pylint: disable=C0103 from protonfixes import util def main(): - """ FarCry 4 chokes on more than 24 cores - """ + """FarCry 4 chokes on more than 24 cores""" util.protontricks('d3dcompiler_43') util.protontricks('d3dcompiler_47') diff --git a/gamefixes-steam/302370.py b/gamefixes-steam/302370.py index 837f7f9b..eb12ce70 100755 --- a/gamefixes-steam/302370.py +++ b/gamefixes-steam/302370.py @@ -1,19 +1,35 @@ -""" Tex Murphy: Overseer +"""Tex Murphy: Overseer Digital Sound Initialization Error (Intel RSX 3D drivers are not installed) LAV Filters for video and DgVoodoo for textures edit registry to avoid ffdshow compatibility manager popup """ -#pylint: disable=C0103 +# pylint: disable=C0103 import os import subprocess from protonfixes import util + def main(): util.protontricks('rsx3d') if util.protontricks('lavfilters'): - util.regedit_add('HKEY_CURRENT_USER\\Software\\GNU\\ffdshow','blacklist','REG_SZ','OVERSEER.EXE') - util.regedit_add('HKEY_CURRENT_USER\\Software\\GNU\\ffdshow_audio','blacklist','REG_SZ','OVERSEER.EXE') + util.regedit_add( + 'HKEY_CURRENT_USER\\Software\\GNU\\ffdshow', + 'blacklist', + 'REG_SZ', + 'OVERSEER.EXE', + ) + util.regedit_add( + 'HKEY_CURRENT_USER\\Software\\GNU\\ffdshow_audio', + 'blacklist', + 'REG_SZ', + 'OVERSEER.EXE', + ) if util.protontricks('dgvoodoo2'): - syswow64 = os.path.join(util.protonprefix(), 'drive_c/windows/syswow64', 'dgvoodoo.conf') - subprocess.call([f"sed -i '/[DirectX]/ {{/Resolution/s/max/unforced/}}' {syswow64}"], shell=True) + syswow64 = os.path.join( + util.protonprefix(), 'drive_c/windows/syswow64', 'dgvoodoo.conf' + ) + subprocess.call( + [f"sed -i '/[DirectX]/ {{/Resolution/s/max/unforced/}}' {syswow64}"], + shell=True, + ) diff --git a/gamefixes-steam/307690.py b/gamefixes-steam/307690.py index 6d1fecbc..4e405cc5 100755 --- a/gamefixes-steam/307690.py +++ b/gamefixes-steam/307690.py @@ -1,15 +1,15 @@ -""" Game fix for Sleeping Dogs: Definitive Edition +"""Game fix for Sleeping Dogs: Definitive Edition Note: It does not work with WINED3D. After the game start fullscreen and resolution can be set from game display settings. Sometimes the game is crashing. """ -#pylint: disable=C0103 +# pylint: disable=C0103 from protonfixes import util + def main(): - """ Set virtual desktop - """ + """Set virtual desktop""" # https://github.com/ValveSoftware/Proton/issues/872 util.protontricks('vd=1280x720') diff --git a/gamefixes-steam/307780.py b/gamefixes-steam/307780.py index 4e008176..bd7cdd12 100755 --- a/gamefixes-steam/307780.py +++ b/gamefixes-steam/307780.py @@ -1,9 +1,9 @@ -""" Game fix for Mortal Kombat X -""" -#pylint: disable=C0103 +"""Game fix for Mortal Kombat X""" +# pylint: disable=C0103 from protonfixes import util + def main(): # Fix pre-rendered cutscene playback util.protontricks('xact_x64') diff --git a/gamefixes-steam/311210.py b/gamefixes-steam/311210.py index 0270059d..7467beee 100755 --- a/gamefixes-steam/311210.py +++ b/gamefixes-steam/311210.py @@ -1,12 +1,11 @@ -""" Game fix for Black Ops III -""" -#pylint: disable=C0103 +"""Game fix for Black Ops III""" +# pylint: disable=C0103 from protonfixes import util + def main(): - """ installs devenum, quartz, wmp9 - """ + """installs devenum, quartz, wmp9""" # If you have too many audio devices the game shows a black screen with audio only, this works around the issue. # https://www.reddit.com/r/blackops3/comments/3rpd4f/black_screen_with_only_audio_pc/ util.protontricks('sound=alsa') diff --git a/gamefixes-steam/311730.py b/gamefixes-steam/311730.py index 27aa9495..7055dc93 100755 --- a/gamefixes-steam/311730.py +++ b/gamefixes-steam/311730.py @@ -1,12 +1,11 @@ -""" Game fix for DEAD OR ALIVE 5 Last Round -""" -#pylint: disable=C0103 +"""Game fix for DEAD OR ALIVE 5 Last Round""" +# pylint: disable=C0103 from protonfixes import util + def main(): - """ Disables esync - """ + """Disables esync""" # https://github.com/ValveSoftware/Proton/issues/1834#issuecomment-433672443 util.disable_esync() diff --git a/gamefixes-steam/312060.py b/gamefixes-steam/312060.py index 439e3861..c2c266f6 100755 --- a/gamefixes-steam/312060.py +++ b/gamefixes-steam/312060.py @@ -1,13 +1,12 @@ -""" Game fix for FFXIV -""" -#pylint: disable=C0103 +"""Game fix for FFXIV""" +# pylint: disable=C0103 import os from protonfixes import util + def main(): - """ FFXIV add NOSTEAM option. - """ + """FFXIV add NOSTEAM option.""" # Fixes the startup process. if 'NOSTEAM' in os.environ: util.replace_command('-issteam', '') diff --git a/gamefixes-steam/312450.py b/gamefixes-steam/312450.py index 342e80f0..2d8bcca6 100755 --- a/gamefixes-steam/312450.py +++ b/gamefixes-steam/312450.py @@ -1,13 +1,13 @@ -""" Game fix for Order of Battle: World War II +"""Game fix for Order of Battle: World War II Still missing intro video codecs """ -#pylint: disable=C0103 +# pylint: disable=C0103 from protonfixes import util + def main(): - """ Install corefonts - """ + """Install corefonts""" # https://github.com/ValveSoftware/Proton/issues/639 util.protontricks('corefonts') diff --git a/gamefixes-steam/312670.py b/gamefixes-steam/312670.py index fada2f79..7c25e925 100755 --- a/gamefixes-steam/312670.py +++ b/gamefixes-steam/312670.py @@ -1,12 +1,11 @@ -""" Game fix for Strange Brigade -""" -#pylint: disable=C0103 +"""Game fix for Strange Brigade""" +# pylint: disable=C0103 from protonfixes import util + def main(): - """ This bypasses Strange Brigade's Launcher, which renders all black. - """ + """This bypasses Strange Brigade's Launcher, which renders all black.""" # Fixes the startup process. util.replace_command('StrangeBrigade.exe', 'StrangeBrigade_Vulkan.exe') util.append_argument('-skipdrivercheck -noHDR') diff --git a/gamefixes-steam/312790.py b/gamefixes-steam/312790.py index ceec4a69..68cf31c3 100755 --- a/gamefixes-steam/312790.py +++ b/gamefixes-steam/312790.py @@ -1,9 +1,9 @@ -""" Game fix for Agarest: Generations of War 2 -""" -#pylint: disable=C0103 +"""Game fix for Agarest: Generations of War 2""" +# pylint: disable=C0103 from protonfixes import util + def main(): util.protontricks('wmp9') util.disable_protonmediaconverter() diff --git a/gamefixes-steam/321040.py b/gamefixes-steam/321040.py index 59a13955..5b50d74a 100755 --- a/gamefixes-steam/321040.py +++ b/gamefixes-steam/321040.py @@ -1,11 +1,9 @@ -""" Game fix for Dirt 3 Complete Edition -""" +"""Game fix for Dirt 3 Complete Edition""" from protonfixes import util def main(): - """ installs openal as redistributable install script is borked. - """ + """installs openal as redistributable install script is borked.""" util.protontricks('openal') diff --git a/gamefixes-steam/328500.py b/gamefixes-steam/328500.py index ee967969..91d57d04 100755 --- a/gamefixes-steam/328500.py +++ b/gamefixes-steam/328500.py @@ -1,13 +1,12 @@ -""" Game fix for Potatoman Seeks the Troof -""" -#pylint: disable=C0103 +"""Game fix for Potatoman Seeks the Troof""" +# pylint: disable=C0103 import os from protonfixes import util + def main(): - """ The file mms.cfg must have the string OverrideGPUValidation=1 written - """ + """The file mms.cfg must have the string OverrideGPUValidation=1 written""" fix_installed = False prefix = util.protonprefix() macro_path = 'drive_c/windows/syswow64/Macromed/Flash' @@ -22,4 +21,4 @@ def main(): if not fix_installed: with open(mms_path, 'a', encoding='utf-8') as f: f.write('\n') - f.write("OverrideGPUValidation=1") + f.write('OverrideGPUValidation=1') diff --git a/gamefixes-steam/329380.py b/gamefixes-steam/329380.py index e28ddd22..3c6225ff 100755 --- a/gamefixes-steam/329380.py +++ b/gamefixes-steam/329380.py @@ -1,5 +1,4 @@ -""" Game fix Stealth Inc 2: A Game of Clones -""" +"""Game fix Stealth Inc 2: A Game of Clones""" # pylint: disable=C0103 from protonfixes import util @@ -7,7 +6,6 @@ def main(): - """ dsound is needed for audio - """ + """dsound is needed for audio""" log('Installing dsound') util.protontricks('dsound') diff --git a/gamefixes-steam/33990.py b/gamefixes-steam/33990.py index 220544e5..98cb0b3e 100755 --- a/gamefixes-steam/33990.py +++ b/gamefixes-steam/33990.py @@ -1,11 +1,12 @@ -""" Alternativa +"""Alternativa wmp11 (Fixes missing logo videos and problems with working videos) hangs on logo without override """ -#pylint: disable=C0103 +# pylint: disable=C0103 from protonfixes import util + def main(): util.winedll_override('libvkd3d-1', 'n') util.protontricks('wmp11') diff --git a/gamefixes-steam/34330.py b/gamefixes-steam/34330.py index a6325c72..2b2c4e3c 100755 --- a/gamefixes-steam/34330.py +++ b/gamefixes-steam/34330.py @@ -1,10 +1,9 @@ -""" Total War: Shogun 2 -""" -#pylint: disable=C0103 +"""Total War: Shogun 2""" +# pylint: disable=C0103 from protonfixes import util -def main(): +def main(): util.protontricks('d3dx11_42') util.protontricks('d3dcompiler_43') diff --git a/gamefixes-steam/348550.py b/gamefixes-steam/348550.py index 7396186b..f8b18fef 100755 --- a/gamefixes-steam/348550.py +++ b/gamefixes-steam/348550.py @@ -1,11 +1,10 @@ -""" Game fix for Guilty Gear Accent Core Plus R -""" -#pylint: disable=C0103 +"""Game fix for Guilty Gear Accent Core Plus R""" +# pylint: disable=C0103 from protonfixes import util + def main(): - """ Uses physx - """ + """Uses physx""" util.protontricks('quartz') diff --git a/gamefixes-steam/35140.py b/gamefixes-steam/35140.py index ac79c8de..6826a068 100755 --- a/gamefixes-steam/35140.py +++ b/gamefixes-steam/35140.py @@ -1,12 +1,13 @@ -""" Game fix Batman Arkham Asylum - (Currently no contollers) +"""Game fix Batman Arkham Asylum +(Currently no contollers) """ -#pylint: disable=C0103 +# pylint: disable=C0103 from protonfixes import util + def main(): - """ Needs windxp, dotnet35, phyzx, d3dx9 """ + """Needs windxp, dotnet35, phyzx, d3dx9""" # Probably not needed when proton will be merged with newer wine # TODO Controllers fixes diff --git a/gamefixes-steam/351710.py b/gamefixes-steam/351710.py index 9f74a897..421f27f9 100755 --- a/gamefixes-steam/351710.py +++ b/gamefixes-steam/351710.py @@ -1,10 +1,11 @@ -""" Hyperdimension Neptunia Re;Birth2 +"""Hyperdimension Neptunia Re;Birth2 Poor performance on some AMD hardware """ -#pylint: disable=C0103 +# pylint: disable=C0103 from protonfixes import util + def main(): util.set_environment('radeonsi_disable_sam', 'true') util.set_environment('AMD_DEBUG', 'nowc') diff --git a/gamefixes-steam/356190.py b/gamefixes-steam/356190.py index 96544648..731006e3 100755 --- a/gamefixes-steam/356190.py +++ b/gamefixes-steam/356190.py @@ -1,9 +1,9 @@ -""" Game fix Shadow of War -""" -#pylint: disable=C0103 +"""Game fix Shadow of War""" +# pylint: disable=C0103 from protonfixes import util + def main(): # Requires vcrun2019 to launch util.protontricks('vcrun2019') diff --git a/gamefixes-steam/356500.py b/gamefixes-steam/356500.py index 13445cd7..02c28991 100755 --- a/gamefixes-steam/356500.py +++ b/gamefixes-steam/356500.py @@ -1,10 +1,10 @@ -""" Game fix for STAR WARS Galactic Battlegrounds Saga -""" +"""Game fix for STAR WARS Galactic Battlegrounds Saga""" -#pylint: disable=C0103 +# pylint: disable=C0103 from protonfixes import util + def main(): util.protontricks('icodecs') util.protontricks('directplay') diff --git a/gamefixes-steam/3590.py b/gamefixes-steam/3590.py index 3cf9f168..a4596c35 100755 --- a/gamefixes-steam/3590.py +++ b/gamefixes-steam/3590.py @@ -1,13 +1,13 @@ -""" Game fix for Plants vs. Zombies: Game of the Year +"""Game fix for Plants vs. Zombies: Game of the Year Source: https://github.com/JamesHealdUK/protonfixes/blob/master/fixes/3590.sh """ -#pylint: disable=C0103 +# pylint: disable=C0103 from protonfixes import util + def main(): - """ Changes the proton argument from the launcher to the game - """ + """Changes the proton argument from the launcher to the game""" # Game expects this to be set util.append_argument('-changedir') diff --git a/gamefixes-steam/359550.py b/gamefixes-steam/359550.py index 32c36895..42fe4032 100755 --- a/gamefixes-steam/359550.py +++ b/gamefixes-steam/359550.py @@ -1,12 +1,11 @@ -""" Rainbow Six Siege -""" -#pylint: disable=C0103 +"""Rainbow Six Siege""" +# pylint: disable=C0103 from protonfixes import util + def main(): - """ Rainbow Six Siege needs vk_x11_override_min_image_count=2 for AMD, and overlay disabled for Vulkan - """ + """Rainbow Six Siege needs vk_x11_override_min_image_count=2 for AMD, and overlay disabled for Vulkan""" util.disable_uplay_overlay() util.set_environment('vk_x11_override_min_image_count', '2') diff --git a/gamefixes-steam/359870.py b/gamefixes-steam/359870.py index eebc96d5..a6c89ceb 100755 --- a/gamefixes-steam/359870.py +++ b/gamefixes-steam/359870.py @@ -1,16 +1,19 @@ -""" Game fix for FFX/X-2 HD Remaster -""" -#pylint: disable=C0103 +"""Game fix for FFX/X-2 HD Remaster""" +# pylint: disable=C0103 import os from protonfixes import util + def main(): # disable new character intro cutscene to prevent black screen loop - configpath = os.path.join(util.protonprefix(), 'drive_c/users/steamuser/My Documents/SQUARE ENIX/FINAL FANTASY X&X-2 HD Remaster') + configpath = os.path.join( + util.protonprefix(), + 'drive_c/users/steamuser/My Documents/SQUARE ENIX/FINAL FANTASY X&X-2 HD Remaster', + ) if not os.path.exists(configpath): os.makedirs(configpath) configgame = os.path.join(configpath, 'GameSetting.ini') if not os.path.isfile(configgame): - with open(configgame,"w+", encoding='utf-8') as f: - f.write("Language=en") + with open(configgame, 'w+', encoding='utf-8') as f: + f.write('Language=en') diff --git a/gamefixes-steam/366250.py b/gamefixes-steam/366250.py index 3b9e9410..aacdd48f 100755 --- a/gamefixes-steam/366250.py +++ b/gamefixes-steam/366250.py @@ -1,8 +1,8 @@ -""" Metal Slug -""" -#pylint: disable=C0103 +"""Metal Slug""" +# pylint: disable=C0103 from protonfixes import util + def main(): util.protontricks('d3dcompiler_46') diff --git a/gamefixes-steam/371660.py b/gamefixes-steam/371660.py index 812f1df0..817a8cb2 100755 --- a/gamefixes-steam/371660.py +++ b/gamefixes-steam/371660.py @@ -1,12 +1,10 @@ -""" Far Cry Primal -""" -#pylint: disable=C0103 +"""Far Cry Primal""" +# pylint: disable=C0103 from protonfixes import util def main(): - """ chokes on more than 31 cores - """ + """chokes on more than 31 cores""" util.set_cpu_topology_limit(31) diff --git a/gamefixes-steam/372000.py b/gamefixes-steam/372000.py index 00ba5352..5eda1fdb 100755 --- a/gamefixes-steam/372000.py +++ b/gamefixes-steam/372000.py @@ -1,10 +1,9 @@ -""" Game fix Tree Of Savior -""" -#pylint: disable=C0103 +"""Game fix Tree Of Savior""" +# pylint: disable=C0103 from protonfixes import util + def main(): - """ https://forum.treeofsavior.com/t/linux-the-graphic-card-does-not-support-directx11-13ep/418073/13 - """ + """https://forum.treeofsavior.com/t/linux-the-graphic-card-does-not-support-directx11-13ep/418073/13""" util.protontricks('d3dcompiler_47') diff --git a/gamefixes-steam/377160.py b/gamefixes-steam/377160.py index 1e46d7fd..984e0809 100755 --- a/gamefixes-steam/377160.py +++ b/gamefixes-steam/377160.py @@ -1,13 +1,12 @@ -""" Game fix for Fallout 4 -""" -#pylint: disable=C0103 +"""Game fix for Fallout 4""" +# pylint: disable=C0103 import os from protonfixes import util + def main(): - """ Run script extender if it exists. - """ + """Run script extender if it exists.""" # Fixes the startup process. if os.path.isfile(os.path.join(os.getcwd(), 'f4se_loader.exe')): diff --git a/gamefixes-steam/377840.py b/gamefixes-steam/377840.py index b8462a95..2358d059 100755 --- a/gamefixes-steam/377840.py +++ b/gamefixes-steam/377840.py @@ -1,12 +1,11 @@ -""" Game fix for FINAL FANTASY IX -""" -#pylint: disable=C0103 +"""Game fix for FINAL FANTASY IX""" +# pylint: disable=C0103 from protonfixes import util + def main(): - """ Changes the proton argument from the launcher to the game - """ + """Changes the proton argument from the launcher to the game""" # Fix crackling audio util.set_environment('PULSE_LATENCY_MSEC', '60') diff --git a/gamefixes-steam/378630.py b/gamefixes-steam/378630.py index a4e09d81..41f0a162 100755 --- a/gamefixes-steam/378630.py +++ b/gamefixes-steam/378630.py @@ -1,11 +1,12 @@ -""" Shadows on the Vatican - Act II: Wrath +"""Shadows on the Vatican - Act II: Wrath Launcher keeps it's process running in the background but nothing shows up """ -#pylint: disable=C0103 +# pylint: disable=C0103 import os from protonfixes import util + def main(): util.replace_command('SotV_Launcher.exe', 'hd/SotV2.exe') os.chdir('hd') diff --git a/gamefixes-steam/379720.py b/gamefixes-steam/379720.py index 4a475f41..d4ce6585 100755 --- a/gamefixes-steam/379720.py +++ b/gamefixes-steam/379720.py @@ -1,6 +1,6 @@ -""" Game fix for Doom 2016 -""" -#pylint: disable=C0103 +"""Game fix for Doom 2016""" + +# pylint: disable=C0103 import os import shutil import urllib.request @@ -10,18 +10,21 @@ def main(): - """ Enable preload options - """ + """Enable preload options""" # Enable preload options util.append_argument('+r_renderAPI 1') installpath = os.path.abspath(os.getcwd()) - url = "https://github.com/Riesi/CChromaEditor/files/2277158/CChromaEditorLibrary.zip" + url = ( + 'https://github.com/Riesi/CChromaEditor/files/2277158/CChromaEditorLibrary.zip' + ) if not os.path.isfile(os.path.join(installpath, 'CChromaEditorLibrary.dll.bak')): - urllib.request.urlretrieve (url, "CChromaEditorLibrary.zip") - shutil.move(os.path.join(installpath, 'CChromaEditorLibrary.dll'), - os.path.join(installpath, 'CChromaEditorLibrary.dll.bak')) - with zipfile.ZipFile("CChromaEditorLibrary.zip", "r") as zip_ref: + urllib.request.urlretrieve(url, 'CChromaEditorLibrary.zip') + shutil.move( + os.path.join(installpath, 'CChromaEditorLibrary.dll'), + os.path.join(installpath, 'CChromaEditorLibrary.dll.bak'), + ) + with zipfile.ZipFile('CChromaEditorLibrary.zip', 'r') as zip_ref: zip_ref.extractall(installpath) diff --git a/gamefixes-steam/386360.py b/gamefixes-steam/386360.py index 4e69c931..2f8b26e5 100755 --- a/gamefixes-steam/386360.py +++ b/gamefixes-steam/386360.py @@ -1,6 +1,5 @@ -""" Game fix for Smite -""" -#pylint: disable=C0103 +"""Game fix for Smite""" +# pylint: disable=C0103 import glob import os @@ -9,13 +8,26 @@ def main(): - """ Fix EAC location in smite - """ + """Fix EAC location in smite""" install_dir = glob.escape(util.get_game_install_path()) # Fix EAC incorrect location: if not os.path.exists(install_dir + '/Win64/EasyAntiCheat/easyanticheat_x64.so'): - subprocess.call(['ln', '-s', install_dir + '/EasyAntiCheat/easyanticheat_x64.so', install_dir + '/Win64/EasyAntiCheat/']) + subprocess.call( + [ + 'ln', + '-s', + install_dir + '/EasyAntiCheat/easyanticheat_x64.so', + install_dir + '/Win64/EasyAntiCheat/', + ] + ) if not os.path.exists(install_dir + '/Win32/EasyAntiCheat/easyanticheat_x86.so'): - subprocess.call(['ln', '-s', install_dir + '/EasyAntiCheat/easyanticheat_x86.so', install_dir + '/Win32/EasyAntiCheat/']) + subprocess.call( + [ + 'ln', + '-s', + install_dir + '/EasyAntiCheat/easyanticheat_x86.so', + install_dir + '/Win32/EasyAntiCheat/', + ] + ) diff --git a/gamefixes-steam/388750.py b/gamefixes-steam/388750.py index fa27bfca..66922481 100755 --- a/gamefixes-steam/388750.py +++ b/gamefixes-steam/388750.py @@ -1,12 +1,11 @@ -""" Game fix for Chronophantasma Extend -""" -#pylint: disable=C0103 +"""Game fix for Chronophantasma Extend""" +# pylint: disable=C0103 from protonfixes import util + def main(): - """ Uses installs devenum wmp9 - """ + """Uses installs devenum wmp9""" # https://github.com/ValveSoftware/Proton/issues/703#issuecomment-416075961 util.protontricks('devenum') diff --git a/gamefixes-steam/390710.py b/gamefixes-steam/390710.py index 270b4734..c8ad060f 100755 --- a/gamefixes-steam/390710.py +++ b/gamefixes-steam/390710.py @@ -1,12 +1,11 @@ -""" Game fix for SUGURI 2 -""" -#pylint: disable=C0103 +"""Game fix for SUGURI 2""" +# pylint: disable=C0103 from protonfixes import util + def main(): - """ Installs d3dxof - """ + """Installs d3dxof""" # https://github.com/ValveSoftware/Proton/issues/970#issuecomment-420421289 util.protontricks('d3dxof') diff --git a/gamefixes-steam/39140.py b/gamefixes-steam/39140.py index c8e80409..dd49c0f0 100755 --- a/gamefixes-steam/39140.py +++ b/gamefixes-steam/39140.py @@ -1,12 +1,11 @@ -""" Game fix for Final Fantasy VII -""" -#pylint: disable=C0103 +"""Game fix for Final Fantasy VII""" +# pylint: disable=C0103 from protonfixes import util + def main(): - """ installs vcrun2019 and d3dcompiler47 - """ + """installs vcrun2019 and d3dcompiler47""" # FFVII needs vcrun2019 and d3dcompiler_47 util.protontricks('vcrun2019') diff --git a/gamefixes-steam/39210.py b/gamefixes-steam/39210.py index 439e3861..c2c266f6 100755 --- a/gamefixes-steam/39210.py +++ b/gamefixes-steam/39210.py @@ -1,13 +1,12 @@ -""" Game fix for FFXIV -""" -#pylint: disable=C0103 +"""Game fix for FFXIV""" +# pylint: disable=C0103 import os from protonfixes import util + def main(): - """ FFXIV add NOSTEAM option. - """ + """FFXIV add NOSTEAM option.""" # Fixes the startup process. if 'NOSTEAM' in os.environ: util.replace_command('-issteam', '') diff --git a/gamefixes-steam/39500.py b/gamefixes-steam/39500.py index 1a54e474..32b9268f 100755 --- a/gamefixes-steam/39500.py +++ b/gamefixes-steam/39500.py @@ -1,13 +1,12 @@ -""" Game fix for Gothic 3 -""" -#pylint: disable=C0103 +"""Game fix for Gothic 3""" +# pylint: disable=C0103 import os from protonfixes import util + def main(): - """ Modify ge3.ini - """ + """Modify ge3.ini""" game_opts = """ [Engine.Setup] @@ -15,4 +14,4 @@ def main(): FpS.Max=0 """ - util.set_ini_options(game_opts,os.path.join('Ini','ge3.ini'),'cp1251','game') + util.set_ini_options(game_opts, os.path.join('Ini', 'ge3.ini'), 'cp1251', 'game') diff --git a/gamefixes-steam/39510.py b/gamefixes-steam/39510.py index 0a20cee2..21b701cd 100755 --- a/gamefixes-steam/39510.py +++ b/gamefixes-steam/39510.py @@ -1,37 +1,41 @@ -""" Game fix for Gothic II: Gold Edition -""" -#pylint: disable=C0103 +"""Game fix for Gothic II: Gold Edition""" +# pylint: disable=C0103 import os from protonfixes import util def main(): + screen_width, screen_height = util.get_resolution() - screen_width,screen_height = util.get_resolution() - - zVidResFullscreenX=str(screen_width) - zVidResFullscreenY=str(screen_height) + zVidResFullscreenX = str(screen_width) + zVidResFullscreenY = str(screen_height) """ Modify Gothic.ini """ - game_opts = """ + game_opts = ( + """ [GAME] scaleVideos=1 [VIDEO] - zVidResFullscreenX=""" + zVidResFullscreenX + """ - zVidResFullscreenY=""" + zVidResFullscreenY + """ + zVidResFullscreenX=""" + + zVidResFullscreenX + + """ + zVidResFullscreenY=""" + + zVidResFullscreenY + + """ zVidResFullscreenBPP=32 """ + ) # Localized versions use different casing for filenames install_dir = util.get_game_install_path() - ini_path = os.path.join(install_dir,'System/Gothic.ini') + ini_path = os.path.join(install_dir, 'System/Gothic.ini') - util.set_ini_options(game_opts,ini_path,'cp1251','absolute') + util.set_ini_options(game_opts, ini_path, 'cp1251', 'absolute') # Fix the game getting locked on exit util.disable_fsync() # GOG specific, Steam build doesn't have ddraw - util.winedll_override("ddraw", "n,b") + util.winedll_override('ddraw', 'n,b') diff --git a/gamefixes-steam/39690.py b/gamefixes-steam/39690.py index ca112f07..ce5cc307 100755 --- a/gamefixes-steam/39690.py +++ b/gamefixes-steam/39690.py @@ -1,5 +1,4 @@ -""" Game fix for Arkania -""" +"""Game fix for Arkania""" # pylint: disable=C0103 @@ -7,6 +6,5 @@ def main(): - # This requires Proton 5.0 installed util.protontricks('wmp11') diff --git a/gamefixes-steam/397540.py b/gamefixes-steam/397540.py index 0f2bfdc2..dd320903 100755 --- a/gamefixes-steam/397540.py +++ b/gamefixes-steam/397540.py @@ -1,12 +1,11 @@ -""" Game fix for Borderlands 3 -""" -#pylint: disable=C0103 +"""Game fix for Borderlands 3""" + +# pylint: disable=C0103 from protonfixes import util def main(): - """ Borderlands 3 vcrun2019 fix - """ + """Borderlands 3 vcrun2019 fix""" # Fixes the startup process. util.protontricks('vcrun2019') util.protontricks('d3dcompiler_47') diff --git a/gamefixes-steam/40800.py b/gamefixes-steam/40800.py index b9d440ce..e7c33d50 100755 --- a/gamefixes-steam/40800.py +++ b/gamefixes-steam/40800.py @@ -1,12 +1,12 @@ -""" Game fix for Super Meat Boy -""" -#pylint: disable=C0103 +"""Game fix for Super Meat Boy""" + +# pylint: disable=C0103 # from protonfixes import util + def main(): - """ installs d3dcompiler, xact - """ + """installs d3dcompiler, xact""" util.protontricks('d3dcompiler_47') util.protontricks('xact') diff --git a/gamefixes-steam/409090.py b/gamefixes-steam/409090.py index 0227c248..e91df8e5 100755 --- a/gamefixes-steam/409090.py +++ b/gamefixes-steam/409090.py @@ -1,18 +1,26 @@ -""" The Big Secret of a Small Town +"""The Big Secret of a Small Town No cursor or double cursor selecting custom cursor in options PROTON_USE_WINED3D=1 fixes the problem but removes the antialising dgvoodoo2 fixes the cursors and keeps the antialising copy dgvoodoo2 d3d9.dll every time otherwise it gets overwritten """ -#pylint: disable=C0103 +# pylint: disable=C0103 import os import subprocess import shutil from protonfixes import util + def main(): syswow64 = os.path.join(util.protonprefix(), 'drive_c/windows/syswow64') if util.protontricks('dgvoodoo2'): - subprocess.call([f"sed -i '/[DirectX]/ {{/Resolution/s/max/unforced/}}' {syswow64}/dgvoodoo.conf"], shell=True) - shutil.copy(os.path.join(syswow64, 'dgd3d9.dll'),os.path.join(syswow64, 'd3d9.dll')) + subprocess.call( + [ + f"sed -i '/[DirectX]/ {{/Resolution/s/max/unforced/}}' {syswow64}/dgvoodoo.conf" + ], + shell=True, + ) + shutil.copy( + os.path.join(syswow64, 'dgd3d9.dll'), os.path.join(syswow64, 'd3d9.dll') + ) diff --git a/gamefixes-steam/40950.py b/gamefixes-steam/40950.py index 042d2586..ae3642e5 100755 --- a/gamefixes-steam/40950.py +++ b/gamefixes-steam/40950.py @@ -1,4 +1,4 @@ -""" Game fix for Stronghold HD +"""Game fix for Stronghold HD Fixes Multiplayer """ # pylint: disable=C0103 @@ -7,7 +7,6 @@ def main(): - """ Installs directplay - """ + """Installs directplay""" util.protontricks('directplay') diff --git a/gamefixes-steam/40970.py b/gamefixes-steam/40970.py index 3ac324a6..4639fe1a 100755 --- a/gamefixes-steam/40970.py +++ b/gamefixes-steam/40970.py @@ -1,4 +1,4 @@ -""" Game fix for Stronghold Crusader HD +"""Game fix for Stronghold Crusader HD Fixes Multiplayer """ @@ -8,7 +8,6 @@ def main(): - """ Installs directplay - """ + """Installs directplay""" util.protontricks('directplay') diff --git a/gamefixes-steam/409720.py b/gamefixes-steam/409720.py index b5aca1f7..b83076b2 100755 --- a/gamefixes-steam/409720.py +++ b/gamefixes-steam/409720.py @@ -1,12 +1,11 @@ -""" Game fix for BioShock 2 Remastered -""" -#pylint: disable=C0103 +"""Game fix for BioShock 2 Remastered""" +# pylint: disable=C0103 from protonfixes import util + def main(): - """ Disable ESYNC, disable intro's - """ + """Disable ESYNC, disable intro's""" # After loading the game, or a save file, a key needs to be pressed # to continue. That screen does not respond to keyboard or mouse, diff --git a/gamefixes-steam/410900.py b/gamefixes-steam/410900.py index a14f16d7..8d9d7e44 100755 --- a/gamefixes-steam/410900.py +++ b/gamefixes-steam/410900.py @@ -1,11 +1,10 @@ -""" Game fix for Forts -""" -#pylint: disable=C0103 +"""Game fix for Forts""" +# pylint: disable=C0103 from protonfixes import util + def main(): - """ Uses winetricks to install the ole32 verb - """ + """Uses winetricks to install the ole32 verb""" util.protontricks('ole32') diff --git a/gamefixes-steam/424840.py b/gamefixes-steam/424840.py index 1d6a4b0f..b822a1b2 100755 --- a/gamefixes-steam/424840.py +++ b/gamefixes-steam/424840.py @@ -1,12 +1,11 @@ -""" Game fix for Little Nightmares -""" +"""Game fix for Little Nightmares""" # pylint: disable=C0103 from protonfixes import util + def main(): - """ Add launch parameter - """ + """Add launch parameter""" # The game crashes if running with more than one CPU thread, # adding "-onethread" will force the game to use only one CPU thread diff --git a/gamefixes-steam/428660.py b/gamefixes-steam/428660.py index 846ca1e0..29db6c0c 100755 --- a/gamefixes-steam/428660.py +++ b/gamefixes-steam/428660.py @@ -1,9 +1,11 @@ -""" Deliver us the Moon fix -""" -#pylint: disable=C0103 +"""Deliver us the Moon fix""" +# pylint: disable=C0103 from protonfixes import util + def main(): # Replace launcher with game exe in proton arguments - util.replace_command('MoonMan.exe', 'MoonMan/Binaries/Win64/MoonMan-Win64-Shipping.exe') + util.replace_command( + 'MoonMan.exe', 'MoonMan/Binaries/Win64/MoonMan-Win64-Shipping.exe' + ) diff --git a/gamefixes-steam/429720.py b/gamefixes-steam/429720.py index 8015aaac..e445032f 100755 --- a/gamefixes-steam/429720.py +++ b/gamefixes-steam/429720.py @@ -1,12 +1,12 @@ -""" Game fix for IMSCARED -""" +"""Game fix for IMSCARED""" -#pylint: disable=C0103 +# pylint: disable=C0103 import os import getpass from protonfixes import util + def main(): # IMSCARED relies on a folder on the user's Desktop being accessible # The problem is that all of the folders in Proton are sandboxed diff --git a/gamefixes-steam/43110.py b/gamefixes-steam/43110.py index 7ab05729..0ce67fb5 100755 --- a/gamefixes-steam/43110.py +++ b/gamefixes-steam/43110.py @@ -1,12 +1,11 @@ -""" Game fix for Metro 2033 -""" -#pylint: disable=C0103 +"""Game fix for Metro 2033""" +# pylint: disable=C0103 from protonfixes import util + def main(): - """ Installs d3dx11_42 - """ + """Installs d3dx11_42""" # Fixes D3D10 and D3D11 render path crash on launch. util.protontricks('d3dx11_42') diff --git a/gamefixes-steam/434570.py b/gamefixes-steam/434570.py index 5318a1cf..b49a0c9b 100755 --- a/gamefixes-steam/434570.py +++ b/gamefixes-steam/434570.py @@ -1,9 +1,9 @@ -""" Game fix for Blood and Bacon -""" +"""Game fix for Blood and Bacon""" -#pylint: disable=C0103 +# pylint: disable=C0103 from protonfixes import util + def main(): util.protontricks('dotnet40') diff --git a/gamefixes-steam/436670.py b/gamefixes-steam/436670.py index e64a90fc..9f1f39f9 100644 --- a/gamefixes-steam/436670.py +++ b/gamefixes-steam/436670.py @@ -1,11 +1,11 @@ -""" Game fix for The Legend of Heroes: Trails in the Sky the 3rd -""" +"""Game fix for The Legend of Heroes: Trails in the Sky the 3rd""" # pylint: disable=C0103 from protonfixes import util + def main(): - util.protontricks('quartz') # Cutscene fixes + util.protontricks('quartz') # Cutscene fixes util.protontricks('amstream') util.protontricks('lavfilters') - util.winedll_override('dinput8', 'n,b') # Set for the SoraVoice mod + util.winedll_override('dinput8', 'n,b') # Set for the SoraVoice mod diff --git a/gamefixes-steam/440900.py b/gamefixes-steam/440900.py index 4b097001..99d51d24 100755 --- a/gamefixes-steam/440900.py +++ b/gamefixes-steam/440900.py @@ -1,14 +1,14 @@ -""" Game fix for Conan Exiles -""" -#pylint: disable=C0103 +"""Game fix for Conan Exiles""" +# pylint: disable=C0103 from protonfixes import util def main(): - """ Launcher workaround - """ + """Launcher workaround""" # Fixes the startup process. util.install_battleye_runtime() - util.replace_command('FuncomLauncher.exe', '../ConanSandbox/Binaries/Win64/ConanSandbox.exe') + util.replace_command( + 'FuncomLauncher.exe', '../ConanSandbox/Binaries/Win64/ConanSandbox.exe' + ) util.append_argument('-BattlEye') diff --git a/gamefixes-steam/44690.py b/gamefixes-steam/44690.py index a49f1eaa..943f4e45 100755 --- a/gamefixes-steam/44690.py +++ b/gamefixes-steam/44690.py @@ -1,11 +1,10 @@ -""" Game fix for GT Legends -""" -#pylint: disable=C0103 +"""Game fix for GT Legends""" +# pylint: disable=C0103 from protonfixes import util + def main(): - """ installs mfc42 - """ + """installs mfc42""" util.protontricks('mfc42') diff --git a/gamefixes-steam/447040.py b/gamefixes-steam/447040.py index 4cde1c7e..752c857b 100755 --- a/gamefixes-steam/447040.py +++ b/gamefixes-steam/447040.py @@ -1,21 +1,25 @@ -""" Game fix for Watch_Dogs 2 -""" -#pylint: disable=C0103 +"""Game fix for Watch_Dogs 2""" +# pylint: disable=C0103 import os from protonfixes import util + def main(): - """ disable Easy Anti-Cheat and online play, disable uplay overlay and change closebehavior - """ + """disable Easy Anti-Cheat and online play, disable uplay overlay and change closebehavior""" - uplayconfigpath = os.path.join(util.protonprefix(), 'drive_c/users/steamuser/Local Settings/Application Data/Ubisoft Game Launcher') + uplayconfigpath = os.path.join( + util.protonprefix(), + 'drive_c/users/steamuser/Local Settings/Application Data/Ubisoft Game Launcher', + ) if not os.path.exists(uplayconfigpath): os.makedirs(uplayconfigpath) uplayconfigfile = os.path.join(uplayconfigpath, 'settings.yml') if not os.path.isfile(uplayconfigfile): - with open(uplayconfigfile,"w+", encoding='utf-8') as f: - f.write("overlay:\n enabled: false\n fps_enabled: false\n warning_enabled: false\nuser:\n closebehavior: CloseBehavior_Close\n landingpage: LandingPageLastPlayedGame\n") + with open(uplayconfigfile, 'w+', encoding='utf-8') as f: + f.write( + 'overlay:\n enabled: false\n fps_enabled: false\n warning_enabled: false\nuser:\n closebehavior: CloseBehavior_Close\n landingpage: LandingPageLastPlayedGame\n' + ) # Replace launcher with game exe in proton arguments util.append_argument('-eac_launcher -nosplash') diff --git a/gamefixes-steam/452440.py b/gamefixes-steam/452440.py index e5eaeb4e..d944701e 100644 --- a/gamefixes-steam/452440.py +++ b/gamefixes-steam/452440.py @@ -17,32 +17,32 @@ def main(): env = protonmain.g_session.env.copy() - wine = f"{util.protondir()}/files/bin/wine64" + wine = f'{util.protondir()}/files/bin/wine64' install_dir = util.get_game_install_path() # Font installer inside the `fonts` subdir - font_installer = "overlock_mod_font_installer.exe" + font_installer = 'overlock_mod_font_installer.exe' # Digest of the font installer - hashsum = "d3bd48162d91322c3d2861cdccc538955336eff7f0fe50eeafee1b7551a52152" + hashsum = 'd3bd48162d91322c3d2861cdccc538955336eff7f0fe50eeafee1b7551a52152' - if os.path.isfile(f"{util.protonprefix()}/drive_c/windows/Fonts/Overlock-Mod.ttf"): + if os.path.isfile(f'{util.protonprefix()}/drive_c/windows/Fonts/Overlock-Mod.ttf'): log.info("Font 'Overlock-Mod.ttf' already installed in prefix, skipping...") return - if not os.path.isfile(f"{install_dir}/font/{font_installer}"): + if not os.path.isfile(f'{install_dir}/font/{font_installer}'): log.warn(f"Could not find '{font_installer}' in '{install_dir}', skipping...") return - with open(f"{install_dir}/font/{font_installer}", mode="rb") as file: + with open(f'{install_dir}/font/{font_installer}', mode='rb') as file: if sha256(file.read()).hexdigest() != hashsum: - log.warn(f"Digest mismatched: {font_installer}") + log.warn(f'Digest mismatched: {font_installer}') log.warn(f"Expected '{hashsum}', skipping...") return log.info("Installing font 'Overlock-Mod.ttf' in prefix...") retc = run( - [wine, "start", "/unix", f"{install_dir}/font/{font_installer}", "/silent"], + [wine, 'start', '/unix', f'{install_dir}/font/{font_installer}', '/silent'], check=False, env=env, ).returncode diff --git a/gamefixes-steam/45750.py b/gamefixes-steam/45750.py index 3c4b864d..8f2a1b0f 100755 --- a/gamefixes-steam/45750.py +++ b/gamefixes-steam/45750.py @@ -1,12 +1,13 @@ -""" Game fix for Lost Planet 2 (2010) +"""Game fix for Lost Planet 2 (2010) This game requires two fixes to work: 1. A mocked xlive.dll for GFWL (multiplayer will not work, but the single player does) 2. No more than 12 CPU cores (on PCGamingWiki is described as 6, but on my personal test I was able to set until 12 of 16) [source: https://www.pcgamingwiki.com/wiki/Lost_Planet_2#Alternate_solution_for_high_core_CPUs] """ -#pylint: disable=C0103 +# pylint: disable=C0103 from protonfixes import util + def main(): util.protontricks('xliveless') diff --git a/gamefixes-steam/460120.py b/gamefixes-steam/460120.py index 0adeb7be..094fe109 100755 --- a/gamefixes-steam/460120.py +++ b/gamefixes-steam/460120.py @@ -1,11 +1,12 @@ -""" Game fix for Megadimension Neptunia VII -""" -#pylint: disable=C0103 +"""Game fix for Megadimension Neptunia VII""" + +# pylint: disable=C0103 # from protonfixes import util -#Fixes cinematics not showing or spawning in a different window -#also fixes cinematics not playing sound + +# Fixes cinematics not showing or spawning in a different window +# also fixes cinematics not playing sound def main(): util.protontricks('quartz_feb2010') util.protontricks('wmp11') diff --git a/gamefixes-steam/46500.py b/gamefixes-steam/46500.py index 7562c3e1..f420942e 100755 --- a/gamefixes-steam/46500.py +++ b/gamefixes-steam/46500.py @@ -1,14 +1,13 @@ -""" Game fix for Syberia -""" -#pylint: disable=C0103 +"""Game fix for Syberia""" +# pylint: disable=C0103 import os import subprocess + def main(): - """ needs player.ini to prevent black screen on load - """ + """needs player.ini to prevent black screen on load""" if not os.path.isfile('player.ini'): subprocess.call(['touch', 'player.ini']) - with open('player.ini',"w+", encoding='utf-8') as f: - f.write("800 600 32 0 BaseCMO.cmo") + with open('player.ini', 'w+', encoding='utf-8') as f: + f.write('800 600 32 0 BaseCMO.cmo') diff --git a/gamefixes-steam/465280.py b/gamefixes-steam/465280.py index 8fa42312..863e4242 100755 --- a/gamefixes-steam/465280.py +++ b/gamefixes-steam/465280.py @@ -1,12 +1,11 @@ -""" Game fix for Yesterday Origins -""" -#pylint: disable=C0103 +"""Game fix for Yesterday Origins""" +# pylint: disable=C0103 from protonfixes import util + def main(): - """ Set to win7 - """ + """Set to win7""" # Fixes black screen during cutscenes. util.protontricks('win7') diff --git a/gamefixes-steam/465840.py b/gamefixes-steam/465840.py index c91ac135..be579d58 100644 --- a/gamefixes-steam/465840.py +++ b/gamefixes-steam/465840.py @@ -1,9 +1,10 @@ -""" +""" The Last Blade """ -#pylint: disable=C0103 +# pylint: disable=C0103 from protonfixes import util + def main(): util.protontricks('d3dcompiler_46') diff --git a/gamefixes-steam/4730.py b/gamefixes-steam/4730.py index 0297c5cb..89d6b9cb 100644 --- a/gamefixes-steam/4730.py +++ b/gamefixes-steam/4730.py @@ -1,9 +1,9 @@ -""" Outrun 2006: Coast 2 Coast -""" -#pylint: disable=C0103 +"""Outrun 2006: Coast 2 Coast""" +# pylint: disable=C0103 from protonfixes import util + # Fix water rendering as black def main(): util.protontricks('d3dx9') diff --git a/gamefixes-steam/48190.py b/gamefixes-steam/48190.py index 2361416c..b9a9f502 100755 --- a/gamefixes-steam/48190.py +++ b/gamefixes-steam/48190.py @@ -1,10 +1,11 @@ -""" Game fix for Assassin's Creed: Brotherhood +"""Game fix for Assassin's Creed: Brotherhood Game uses an old customized Ubisoft launcher that's currently not working with Proton. """ -#pylint: disable=C0103 +# pylint: disable=C0103 from protonfixes import util + def main(): util.append_argument('-playoffline') diff --git a/gamefixes-steam/489830.py b/gamefixes-steam/489830.py index 5e2cd72f..fb88bb8d 100755 --- a/gamefixes-steam/489830.py +++ b/gamefixes-steam/489830.py @@ -1,13 +1,12 @@ -""" Game fix for Skyrim SE -""" -#pylint: disable=C0103 +"""Game fix for Skyrim SE""" +# pylint: disable=C0103 import os from protonfixes import util + def main(): - """ Run script extender if it exists. - """ + """Run script extender if it exists.""" if os.path.isfile(os.path.join(os.getcwd(), 'skse64_loader.exe')): if 'MODS' in os.environ: util.replace_command('SkyrimSELauncher.exe', 'skse64_loader.exe') diff --git a/gamefixes-steam/49520.py b/gamefixes-steam/49520.py index 0674b46a..c1663be0 100755 --- a/gamefixes-steam/49520.py +++ b/gamefixes-steam/49520.py @@ -1,12 +1,11 @@ -""" Game fix for Borderlands 2 -""" -#pylint: disable=C0103 +"""Game fix for Borderlands 2""" +# pylint: disable=C0103 from protonfixes import util + def main(): - """ Launcherfix and NVIDIA PhysX support. - """ + """Launcherfix and NVIDIA PhysX support.""" # Fixes the startup process. util.replace_command('Launcher.exe', 'Borderlands2.exe') diff --git a/gamefixes-steam/495420.py b/gamefixes-steam/495420.py index 4412b50d..974c4e74 100755 --- a/gamefixes-steam/495420.py +++ b/gamefixes-steam/495420.py @@ -1,11 +1,10 @@ -""" Game fix for State of Decay 2 -""" -#pylint: disable=C0103 +"""Game fix for State of Decay 2""" +# pylint: disable=C0103 from protonfixes import util + def main(): - """ Fix game crashes with d3dcompiler_47 and multiplayer crashes with win7 - """ + """Fix game crashes with d3dcompiler_47 and multiplayer crashes with win7""" util.protontricks('d3dcompiler_47') util.protontricks('win7') diff --git a/gamefixes-steam/497360.py b/gamefixes-steam/497360.py index 60d07b17..8a6f9360 100644 --- a/gamefixes-steam/497360.py +++ b/gamefixes-steam/497360.py @@ -1,4 +1,4 @@ -""" Gabriel Knight 3: Blood of the Sacred, Blood of the Damned +"""Gabriel Knight 3: Blood of the Sacred, Blood of the Damned Fix for Insert CD Fixes graphical issues Video errors in Sydney @@ -6,37 +6,95 @@ Widescreen supported (16:9/21:9, 32:9 not tested) """ -#pylint: disable=C0103 +# pylint: disable=C0103 import os import subprocess from protonfixes import util + def main(): dosdevice = os.path.join(util.protonprefix(), 'dosdevices/r:') if not os.path.exists(dosdevice): - os.symlink('/tmp', dosdevice) #create symlink for dosdevices - util.regedit_add("HKLM\\Software\\Wine\\Drives",'r:','REG_SZ','cdrom', True) #designate drive as CD-ROM, requires 64-bit access + os.symlink('/tmp', dosdevice) # create symlink for dosdevices + util.regedit_add( + 'HKLM\\Software\\Wine\\Drives', 'r:', 'REG_SZ', 'cdrom', True + ) # designate drive as CD-ROM, requires 64-bit access util.protontricks('quartz') util.protontricks('amstream') - #No errors but doesn't show videos on SYDNEY - #util.protontricks('lavfilters') - #Show videos but green background is visible + # No errors but doesn't show videos on SYDNEY + # util.protontricks('lavfilters') + # Show videos but green background is visible util.protontricks('klite') syswow64 = os.path.join(util.protonprefix(), 'drive_c/windows/syswow64') if util.protontricks('dgvoodoo2'): - screen_width,screen_height = util.get_resolution() + screen_width, screen_height = util.get_resolution() width = int(screen_width / screen_height * 768 // 1) - subprocess.call([f"sed -i '/[DirectX]/ {{/Resolution/s/max/{width}x768/}}' {syswow64}/dgvoodoo.conf"], shell=True) - subprocess.call([f"sed -i '/[DirectXExt]/ {{/ExtraEnumeratedResolutions/s/= /= {width}x768,/}}' {syswow64}/dgvoodoo.conf"], shell=True) + subprocess.call( + [ + f"sed -i '/[DirectX]/ {{/Resolution/s/max/{width}x768/}}' {syswow64}/dgvoodoo.conf" + ], + shell=True, + ) + subprocess.call( + [ + f"sed -i '/[DirectXExt]/ {{/ExtraEnumeratedResolutions/s/= /= {width}x768,/}}' {syswow64}/dgvoodoo.conf" + ], + shell=True, + ) util.regedit_add('HKCU\\Software\\Sierra On-Line') util.regedit_add('HKCU\\Software\\Sierra On-Line\\Gabriel Knight 3') - util.regedit_add('HKCU\\Software\\Sierra On-Line\\Gabriel Knight 3\\App','Run Count','REG_DWORD','0x1') - util.regedit_add('HKCU\\Software\\Sierra On-Line\\Gabriel Knight 3\\Engine','Full Screen','REG_DWORD','0x1') - util.regedit_add('HKCU\\Software\\Sierra On-Line\\Gabriel Knight 3\\Engine','Monitor','REG_DWORD','0x0') - util.regedit_add('HKCU\\Software\\Sierra On-Line\\Gabriel Knight 3\\Engine','Rasterizer','REG_SZ','detect') - util.regedit_add('HKCU\\Software\\Sierra On-Line\\Gabriel Knight 3\\Engine','Rasterizer GUID','REG_SZ','{00000000-0000-0000-0000-000000000000}') - util.regedit_add('HKCU\\Software\\Sierra On-Line\\Gabriel Knight 3\\Engine','Screen Height','REG_DWORD','0x300') - util.regedit_add('HKCU\\Software\\Sierra On-Line\\Gabriel Knight 3\\Engine','Screen Width','REG_DWORD',hex(width)) - util.regedit_add('HKCU\\Software\\Sierra On-Line\\Gabriel Knight 3\\Engine\\Hardware','Gamma','REG_SZ','1.5') - util.regedit_add('HKCU\\Software\\Sierra On-Line\\Gabriel Knight 3\\Engine\\Hardware','Surface Quality','REG_SZ','High') + util.regedit_add( + 'HKCU\\Software\\Sierra On-Line\\Gabriel Knight 3\\App', + 'Run Count', + 'REG_DWORD', + '0x1', + ) + util.regedit_add( + 'HKCU\\Software\\Sierra On-Line\\Gabriel Knight 3\\Engine', + 'Full Screen', + 'REG_DWORD', + '0x1', + ) + util.regedit_add( + 'HKCU\\Software\\Sierra On-Line\\Gabriel Knight 3\\Engine', + 'Monitor', + 'REG_DWORD', + '0x0', + ) + util.regedit_add( + 'HKCU\\Software\\Sierra On-Line\\Gabriel Knight 3\\Engine', + 'Rasterizer', + 'REG_SZ', + 'detect', + ) + util.regedit_add( + 'HKCU\\Software\\Sierra On-Line\\Gabriel Knight 3\\Engine', + 'Rasterizer GUID', + 'REG_SZ', + '{00000000-0000-0000-0000-000000000000}', + ) + util.regedit_add( + 'HKCU\\Software\\Sierra On-Line\\Gabriel Knight 3\\Engine', + 'Screen Height', + 'REG_DWORD', + '0x300', + ) + util.regedit_add( + 'HKCU\\Software\\Sierra On-Line\\Gabriel Knight 3\\Engine', + 'Screen Width', + 'REG_DWORD', + hex(width), + ) + util.regedit_add( + 'HKCU\\Software\\Sierra On-Line\\Gabriel Knight 3\\Engine\\Hardware', + 'Gamma', + 'REG_SZ', + '1.5', + ) + util.regedit_add( + 'HKCU\\Software\\Sierra On-Line\\Gabriel Knight 3\\Engine\\Hardware', + 'Surface Quality', + 'REG_SZ', + 'High', + ) diff --git a/gamefixes-steam/508980.py b/gamefixes-steam/508980.py index ad7a5846..86ebe1e4 100755 --- a/gamefixes-steam/508980.py +++ b/gamefixes-steam/508980.py @@ -1,5 +1,4 @@ -""" Game fix for Crashday Redline Edition -""" +"""Game fix for Crashday Redline Edition""" # pylint: disable=C0103 @@ -8,11 +7,13 @@ def main(): - """ Change setting FSAA to 0 in graphics.config - """ + """Change setting FSAA to 0 in graphics.config""" - config = (util.protonprefix() + "drive_c/users/steamuser/Local Settings/" + - "Application Data/Crashday/config/graphics.config") + config = ( + util.protonprefix() + + 'drive_c/users/steamuser/Local Settings/' + + 'Application Data/Crashday/config/graphics.config' + ) # https://stackoverflow.com/a/45435707 with open(config, 'r', encoding='utf-8') as file: diff --git a/gamefixes-steam/518790.py b/gamefixes-steam/518790.py index cb8384e5..326cb278 100755 --- a/gamefixes-steam/518790.py +++ b/gamefixes-steam/518790.py @@ -1,10 +1,9 @@ -""" The Hunter: Call of the Wild -""" -#pylint: disable=C0103 +"""The Hunter: Call of the Wild""" +# pylint: disable=C0103 from protonfixes import util + def main(): - """ Requires nvapi disabled. - """ + """Requires nvapi disabled.""" util.disable_nvapi() diff --git a/gamefixes-steam/550340.py b/gamefixes-steam/550340.py index f58547a3..e34ae1ab 100755 --- a/gamefixes-steam/550340.py +++ b/gamefixes-steam/550340.py @@ -1,9 +1,9 @@ -""" Ougon Musoukyoku -""" -#pylint: disable=C0103 +"""Ougon Musoukyoku""" +# pylint: disable=C0103 from protonfixes import util + def main(): # Codecs required for opening playback util.protontricks('lavfilters') diff --git a/gamefixes-steam/559620.py b/gamefixes-steam/559620.py index bf350acf..b41894da 100755 --- a/gamefixes-steam/559620.py +++ b/gamefixes-steam/559620.py @@ -1,9 +1,10 @@ -""" Game fix for Outlaws + A Handful of Missions -""" -#pylint: disable=C0103 +"""Game fix for Outlaws + A Handful of Missions""" + +# pylint: disable=C0103 # from protonfixes import util + def main(): # Override ddraw (cutscenes+menu perf) and WinMM (Music) util.winedll_override('ddraw', 'n,b') diff --git a/gamefixes-steam/570940.py b/gamefixes-steam/570940.py index 4e3d90a5..9de12437 100755 --- a/gamefixes-steam/570940.py +++ b/gamefixes-steam/570940.py @@ -1,9 +1,9 @@ -""" Game fix Dark Souls Remastered -""" -#pylint: disable=C0103 +"""Game fix Dark Souls Remastered""" +# pylint: disable=C0103 from protonfixes import util + def main(): # Requires vcrun2017 to launch util.protontricks('vcrun2017') diff --git a/gamefixes-steam/582660.py b/gamefixes-steam/582660.py index a526de02..5c98ee1f 100755 --- a/gamefixes-steam/582660.py +++ b/gamefixes-steam/582660.py @@ -1,17 +1,16 @@ -""" Game fix for Black Desert Online -""" -#pylint: disable=C0103 +"""Game fix for Black Desert Online""" +# pylint: disable=C0103 import os from protonfixes import util + def main(): - """ Black Desert Online add NOSTEAM option. - """ + """Black Desert Online add NOSTEAM option.""" # Fixes the startup process. if 'NOSTEAM' in os.environ: util.replace_command('--steam', '') # Needed for settings archive - util.set_environment('SteamGameId','582660') + util.set_environment('SteamGameId', '582660') # Needed for Launcher - util.set_environment('WINE_DISABLE_KERNEL_WRITEWATCH','1') + util.set_environment('WINE_DISABLE_KERNEL_WRITEWATCH', '1') diff --git a/gamefixes-steam/586140.py b/gamefixes-steam/586140.py index ab94d0ed..a7cbe503 100755 --- a/gamefixes-steam/586140.py +++ b/gamefixes-steam/586140.py @@ -1,11 +1,12 @@ -""" BlazBlue Centralfiction +"""BlazBlue Centralfiction Missing voices/sounds in cutscenes Requires disabling the gstreamer protonaudioconverterbin plugin to get full audio in cutscenes """ -#pylint: disable=C0103 +# pylint: disable=C0103 from protonfixes import util + def main(): util.disable_protonmediaconverter() diff --git a/gamefixes-steam/593600.py b/gamefixes-steam/593600.py index ce486632..64daac97 100755 --- a/gamefixes-steam/593600.py +++ b/gamefixes-steam/593600.py @@ -1,11 +1,10 @@ -""" Game fix for PixARK -""" -#pylint: disable=C0103 +"""Game fix for PixARK""" +# pylint: disable=C0103 from protonfixes import util + def main(): - """ Overrides the mprapi.dll to native. - """ + """Overrides the mprapi.dll to native.""" util.winedll_override('mprapi', 'x') diff --git a/gamefixes-steam/601510.py b/gamefixes-steam/601510.py index ca2e4d67..8abcb376 100755 --- a/gamefixes-steam/601510.py +++ b/gamefixes-steam/601510.py @@ -1,9 +1,9 @@ -""" Yu-Gi-Oh Duel Links needs vcrun2019 -""" -#pylint: disable=C0103 +"""Yu-Gi-Oh Duel Links needs vcrun2019""" +# pylint: disable=C0103 from protonfixes import util + def main(): # Replace launcher with game exe in proton arguments util.protontricks('vcrun2019') diff --git a/gamefixes-steam/61500.py b/gamefixes-steam/61500.py index 3f285159..48c20f33 100755 --- a/gamefixes-steam/61500.py +++ b/gamefixes-steam/61500.py @@ -1,9 +1,9 @@ -""" Game fix for Age of Wonders -""" +"""Game fix for Age of Wonders""" -#pylint: disable=C0103 +# pylint: disable=C0103 from protonfixes import util + def main(): util.protontricks('icodecs') diff --git a/gamefixes-steam/6270.py b/gamefixes-steam/6270.py index 5bfb3438..3c1d8a8d 100644 --- a/gamefixes-steam/6270.py +++ b/gamefixes-steam/6270.py @@ -1,8 +1,8 @@ -""" Ducati World Championship -""" -#pylint: disable=C0103 +"""Ducati World Championship""" +# pylint: disable=C0103 from protonfixes import util + def main(): util.protontricks('icodecs') diff --git a/gamefixes-steam/627270.py b/gamefixes-steam/627270.py index 0d4d7108..86156056 100755 --- a/gamefixes-steam/627270.py +++ b/gamefixes-steam/627270.py @@ -1,9 +1,9 @@ -""" Game fix Injustice 2 -""" -#pylint: disable=C0103 +"""Game fix Injustice 2""" +# pylint: disable=C0103 from protonfixes import util + def main(): # Requires vcrun2019 to launch util.protontricks('vcrun2019') diff --git a/gamefixes-steam/63110.py b/gamefixes-steam/63110.py index ef0e5f21..ef6aea24 100755 --- a/gamefixes-steam/63110.py +++ b/gamefixes-steam/63110.py @@ -1,10 +1,11 @@ -""" Alter Ego +"""Alter Ego Launcher crashes immediately without displaying any windows """ -#pylint: disable=C0103 +# pylint: disable=C0103 from protonfixes import util + def main(): util.replace_command('AlterEgo.exe', './RunDev.exe') util.append_argument('AlterEgo.ebr') diff --git a/gamefixes-steam/633230.py b/gamefixes-steam/633230.py index cc157abf..6adafe8c 100755 --- a/gamefixes-steam/633230.py +++ b/gamefixes-steam/633230.py @@ -1,10 +1,12 @@ -""" Game fix for Naruto To Boruto -""" -#pylint: disable=C0103 +"""Game fix for Naruto To Boruto""" +# pylint: disable=C0103 from protonfixes import util + def main(): - util.replace_command('NARUTO.exe', 'NARUTO/Binaries/Win64/NARUTO-Win64-Shipping.exe') + util.replace_command( + 'NARUTO.exe', 'NARUTO/Binaries/Win64/NARUTO-Win64-Shipping.exe' + ) util.append_argument('-eac-nop-loaded') util.protontricks('hidewineexports=enable') diff --git a/gamefixes-steam/63700.py b/gamefixes-steam/63700.py index 9583984f..69c1eaed 100755 --- a/gamefixes-steam/63700.py +++ b/gamefixes-steam/63700.py @@ -1,10 +1,10 @@ -""" Game fix for BIT.TRIP BEAT -""" +"""Game fix for BIT.TRIP BEAT""" -#pylint: disable=C0103 +# pylint: disable=C0103 from protonfixes import util + def main(): util.protontricks('d3dcompiler_43') util.protontricks('d3dx9_43') diff --git a/gamefixes-steam/63710.py b/gamefixes-steam/63710.py index d2799d2d..5588910d 100755 --- a/gamefixes-steam/63710.py +++ b/gamefixes-steam/63710.py @@ -1,12 +1,11 @@ -""" Game fix for BIT.TRIP RUNNER -""" -#pylint: disable=C0103 +"""Game fix for BIT.TRIP RUNNER""" +# pylint: disable=C0103 from protonfixes import util + def main(): - """ From: https://www.protondb.com/app/63710 - """ + """From: https://www.protondb.com/app/63710""" util.protontricks('d3dcompiler_43') util.protontricks('d3dx9_43') diff --git a/gamefixes-steam/638160.py b/gamefixes-steam/638160.py index 15084641..6be83399 100755 --- a/gamefixes-steam/638160.py +++ b/gamefixes-steam/638160.py @@ -1,9 +1,9 @@ -""" Game fix for Moero Chronicle -""" -#pylint: disable=C0103 +"""Game fix for Moero Chronicle""" +# pylint: disable=C0103 from protonfixes import util + def main(): util.protontricks('quartz_feb2010') util.protontricks('wmp11') diff --git a/gamefixes-steam/638970.py b/gamefixes-steam/638970.py index 7d948d8f..f9276b8b 100755 --- a/gamefixes-steam/638970.py +++ b/gamefixes-steam/638970.py @@ -1,12 +1,11 @@ -""" Game fix for Yakuza 0 -""" -#pylint: disable=C0103 +"""Game fix for Yakuza 0""" +# pylint: disable=C0103 from protonfixes import util + def main(): - """ Disable FSYNC - """ + """Disable FSYNC""" # Disable fsync to fix saving issues util.disable_fsync() diff --git a/gamefixes-steam/644930.py b/gamefixes-steam/644930.py index 7a72e98a..a7271abe 100644 --- a/gamefixes-steam/644930.py +++ b/gamefixes-steam/644930.py @@ -1,9 +1,9 @@ -""" They Are Billions -""" -#pylint: disable=C0103 +"""They Are Billions""" +# pylint: disable=C0103 from protonfixes import util + def main(): # fix broken or missing font in UI - util.protontricks("gdiplus") + util.protontricks('gdiplus') diff --git a/gamefixes-steam/65540.py b/gamefixes-steam/65540.py index 938013ea..cfe8e006 100755 --- a/gamefixes-steam/65540.py +++ b/gamefixes-steam/65540.py @@ -1,30 +1,34 @@ -""" Game fix for Gothic 1 -""" -#pylint: disable=C0103 +"""Game fix for Gothic 1""" +# pylint: disable=C0103 from protonfixes import util def main(): + screen_width, screen_height = util.get_resolution() - screen_width,screen_height = util.get_resolution() - - zVidResFullscreenX=str(screen_width) - zVidResFullscreenY=str(screen_height) + zVidResFullscreenX = str(screen_width) + zVidResFullscreenY = str(screen_height) """ Modify Gothic.ini """ - game_opts = """ + game_opts = ( + """ [GAME] scaleVideos=1 [VIDEO] - zVidResFullscreenX=""" + zVidResFullscreenX + """ - zVidResFullscreenY=""" + zVidResFullscreenY + """ + zVidResFullscreenX=""" + + zVidResFullscreenX + + """ + zVidResFullscreenY=""" + + zVidResFullscreenY + + """ zVidResFullscreenBPP=32 """ + ) - util.set_ini_options(game_opts,'system/Gothic.ini','cp1251','game') + util.set_ini_options(game_opts, 'system/Gothic.ini', 'cp1251', 'game') # Fix the game getting locked on exit util.disable_fsync() diff --git a/gamefixes-steam/65600.py b/gamefixes-steam/65600.py index 73bd00f6..4d08b898 100755 --- a/gamefixes-steam/65600.py +++ b/gamefixes-steam/65600.py @@ -1,13 +1,12 @@ -""" Game fix for Gothic 3 Forsaken Gods Enhanced Edition -""" -#pylint: disable=C0103 +"""Game fix for Gothic 3 Forsaken Gods Enhanced Edition""" +# pylint: disable=C0103 import os from protonfixes import util + def main(): - """ Modify ge3.ini - """ + """Modify ge3.ini""" game_opts = """ [Engine.Setup] @@ -15,4 +14,4 @@ def main(): FpS.Max=0 """ - util.set_ini_options(game_opts,os.path.join('Ini','ge3.ini'),'cp1251','game') + util.set_ini_options(game_opts, os.path.join('Ini', 'ge3.ini'), 'cp1251', 'game') diff --git a/gamefixes-steam/65610.py b/gamefixes-steam/65610.py index ca112f07..ce5cc307 100755 --- a/gamefixes-steam/65610.py +++ b/gamefixes-steam/65610.py @@ -1,5 +1,4 @@ -""" Game fix for Arkania -""" +"""Game fix for Arkania""" # pylint: disable=C0103 @@ -7,6 +6,5 @@ def main(): - # This requires Proton 5.0 installed util.protontricks('wmp11') diff --git a/gamefixes-steam/658150.py b/gamefixes-steam/658150.py index 5f5e296e..d15a2a11 100755 --- a/gamefixes-steam/658150.py +++ b/gamefixes-steam/658150.py @@ -1,12 +1,10 @@ -""" Skeleton Boomerang -""" -#pylint: disable=C0103 +"""Skeleton Boomerang""" +# pylint: disable=C0103 from protonfixes import util def main(): - """ Fixes shader compilation error - """ + """Fixes shader compilation error""" util.protontricks('d3dcompiler_43') diff --git a/gamefixes-steam/65930.py b/gamefixes-steam/65930.py index e4f7823e..835384f0 100755 --- a/gamefixes-steam/65930.py +++ b/gamefixes-steam/65930.py @@ -1,12 +1,11 @@ -""" Game fix for The Bureau: XCOM Declassified -""" -#pylint: disable=C0103 +"""Game fix for The Bureau: XCOM Declassified""" +# pylint: disable=C0103 from protonfixes import util + def main(): - """ Disables esync and fsync - """ + """Disables esync and fsync""" # https://github.com/ValveSoftware/Proton/issues/797#issuecomment-955180056 util.disable_esync() diff --git a/gamefixes-steam/678950.py b/gamefixes-steam/678950.py index 17d5ee88..b1743aa5 100755 --- a/gamefixes-steam/678950.py +++ b/gamefixes-steam/678950.py @@ -1,9 +1,9 @@ -""" Game fix for DRAGON BALL FighterZ -""" -#pylint: disable=C0103 +"""Game fix for DRAGON BALL FighterZ""" +# pylint: disable=C0103 from protonfixes import util + def main(): util.replace_command('DBFighterZ.exe', 'RED/Binaries/Win64/RED-Win64-Shipping.exe') util.append_argument('-eac-nop-loaded') diff --git a/gamefixes-steam/700600.py b/gamefixes-steam/700600.py index adc169bf..d6e78c92 100755 --- a/gamefixes-steam/700600.py +++ b/gamefixes-steam/700600.py @@ -1,12 +1,11 @@ -""" Game fix for Evil Genius 2 -""" -#pylint: disable=C0103 +"""Game fix for Evil Genius 2""" +# pylint: disable=C0103 from protonfixes import util + def main(): - """ Launcher workaround - """ + """Launcher workaround""" # Fixes the startup process. util.replace_command('eg2.exe', '../bin/evilgenius_vulkan.exe') diff --git a/gamefixes-steam/702050.py b/gamefixes-steam/702050.py index 4b431fe4..c8c20416 100755 --- a/gamefixes-steam/702050.py +++ b/gamefixes-steam/702050.py @@ -1,11 +1,10 @@ -""" Game fix for The Song of Saya -""" +"""Game fix for The Song of Saya""" from protonfixes import util + def main(): - """ Disable esync and fsync - """ + """Disable esync and fsync""" # Fixes random crashing during gameplay util.disable_esync() diff --git a/gamefixes-steam/70400.py b/gamefixes-steam/70400.py index 4bd57c21..a9236823 100755 --- a/gamefixes-steam/70400.py +++ b/gamefixes-steam/70400.py @@ -1,12 +1,11 @@ -""" Game fix for Recettear: An Item Shop's Tale -""" -#pylint: disable=C0103 +"""Game fix for Recettear: An Item Shop's Tale""" +# pylint: disable=C0103 from protonfixes import util + def main(): - """ Install directsound libraries - """ + """Install directsound libraries""" util.protontricks('dmime') util.protontricks('dmloader') diff --git a/gamefixes-steam/70420.py b/gamefixes-steam/70420.py index d0b6ce35..34d52258 100755 --- a/gamefixes-steam/70420.py +++ b/gamefixes-steam/70420.py @@ -1,12 +1,11 @@ -""" Game fix for Chantelise - A Tale of Two Sisters -""" -#pylint: disable=C0103 +"""Game fix for Chantelise - A Tale of Two Sisters""" +# pylint: disable=C0103 from protonfixes import util + def main(): - """ Install directsound libraries - """ + """Install directsound libraries""" util.protontricks('dmime') util.protontricks('dmloader') diff --git a/gamefixes-steam/72850.py b/gamefixes-steam/72850.py index 339db182..837d1ebe 100755 --- a/gamefixes-steam/72850.py +++ b/gamefixes-steam/72850.py @@ -1,13 +1,12 @@ -""" Game fix for Skyrim -""" -#pylint: disable=C0103 +"""Game fix for Skyrim""" +# pylint: disable=C0103 import os from protonfixes import util + def main(): - """ Run script extender if it exists. - """ + """Run script extender if it exists.""" # Fixes the startup process. if os.path.isfile(os.path.join(os.getcwd(), 'skse_loader.exe')): diff --git a/gamefixes-steam/729040.py b/gamefixes-steam/729040.py index 956cfeab..af98886d 100755 --- a/gamefixes-steam/729040.py +++ b/gamefixes-steam/729040.py @@ -1,8 +1,8 @@ -""" Borderlands GOTY -""" -#pylint: disable=C0103 +"""Borderlands GOTY""" +# pylint: disable=C0103 from protonfixes import util + def main(): util.replace_command('Launcher.exe', 'BorderlandsGOTY.exe') diff --git a/gamefixes-steam/730830.py b/gamefixes-steam/730830.py index 3c2eb64c..ae27dd89 100755 --- a/gamefixes-steam/730830.py +++ b/gamefixes-steam/730830.py @@ -1,9 +1,10 @@ -""" Escape From Monkey Island +"""Escape From Monkey Island dgvoodoo2 to force anti-aliasing and higher resolution """ -#pylint: disable=C0103 +# pylint: disable=C0103 from protonfixes import util + def main(): util.protontricks('dgvoodoo2') diff --git a/gamefixes-steam/73170.py b/gamefixes-steam/73170.py index de2868e5..dff83bc1 100755 --- a/gamefixes-steam/73170.py +++ b/gamefixes-steam/73170.py @@ -1,12 +1,11 @@ -""" Game fix for Darkest Hour: A Hearts of Iron Game -""" -#pylint: disable=C0103 +"""Game fix for Darkest Hour: A Hearts of Iron Game""" +# pylint: disable=C0103 from protonfixes import util + def main(): - """ Set virtual desktop - """ + """Set virtual desktop""" # https://github.com/ValveSoftware/Proton/issues/3338 util.protontricks('vd=1280x720') diff --git a/gamefixes-steam/740550.py b/gamefixes-steam/740550.py index cdfa84a0..f0a87c5e 100755 --- a/gamefixes-steam/740550.py +++ b/gamefixes-steam/740550.py @@ -1,9 +1,9 @@ -""" Game fix for Record of Agarest War Mariage -""" -#pylint: disable=C0103 +"""Game fix for Record of Agarest War Mariage""" +# pylint: disable=C0103 from protonfixes import util + def main(): util.protontricks('wmp9') util.disable_protonmediaconverter() diff --git a/gamefixes-steam/750920.py b/gamefixes-steam/750920.py index 8547775a..9409b610 100755 --- a/gamefixes-steam/750920.py +++ b/gamefixes-steam/750920.py @@ -1,11 +1,10 @@ -""" Shadow of the Tomb Raider -""" -#pylint: disable=C0103 +"""Shadow of the Tomb Raider""" +# pylint: disable=C0103 from protonfixes import util + def main(): - """ Requires media foundation dlls - """ + """Requires media foundation dlls""" util.protontricks('d3dcompiler_47') diff --git a/gamefixes-steam/773370.py b/gamefixes-steam/773370.py index 687d0ccc..95574d68 100755 --- a/gamefixes-steam/773370.py +++ b/gamefixes-steam/773370.py @@ -1,11 +1,10 @@ -""" Exo One -""" -#pylint: disable=C0103 +"""Exo One""" +# pylint: disable=C0103 from protonfixes import util + def main(): - """ Requires d3dcompiler_47 - """ + """Requires d3dcompiler_47""" util.protontricks('d3dcompiler_47') diff --git a/gamefixes-steam/78000.py b/gamefixes-steam/78000.py index 4a12a307..9bb997c7 100755 --- a/gamefixes-steam/78000.py +++ b/gamefixes-steam/78000.py @@ -1,10 +1,9 @@ -""" Game fix for Bejeweled 3 -""" -#pylint: disable=C0103 +"""Game fix for Bejeweled 3""" +# pylint: disable=C0103 from protonfixes import util + def main(): - """ game needs d3dcompiler_43 for dx10 mode, but still does not work. disabling dx10 mode allows dx9 mode to work with dxvk - """ + """game needs d3dcompiler_43 for dx10 mode, but still does not work. disabling dx10 mode allows dx9 mode to work with dxvk""" util.set_environment('PROTON_NO_D3D10', '1') diff --git a/gamefixes-steam/782330.py b/gamefixes-steam/782330.py index 24e192e5..3f925be7 100755 --- a/gamefixes-steam/782330.py +++ b/gamefixes-steam/782330.py @@ -1,8 +1,8 @@ -""" DOOM Eternal -""" -#pylint: disable=C0103 +"""DOOM Eternal""" +# pylint: disable=C0103 from protonfixes import util + def main(): util.append_argument('+com_skipSignInManager 1') diff --git a/gamefixes-steam/7850.py b/gamefixes-steam/7850.py index e4ef519b..10cf0490 100755 --- a/gamefixes-steam/7850.py +++ b/gamefixes-steam/7850.py @@ -1,11 +1,10 @@ -""" Game fix for Cryostasis -""" -#pylint: disable=C0103 +"""Game fix for Cryostasis""" +# pylint: disable=C0103 from protonfixes import util + def main(): - """ Uses physx - """ + """Uses physx""" util.protontricks('physx') diff --git a/gamefixes-steam/812140.py b/gamefixes-steam/812140.py index 72c86484..2ec8aeb7 100755 --- a/gamefixes-steam/812140.py +++ b/gamefixes-steam/812140.py @@ -1,18 +1,23 @@ -""" Assassin's Creed: Odyssey -""" +"""Assassin's Creed: Odyssey""" + import os from protonfixes import util + def main(): - """ disable Easy Anti-Cheat and online play, disable uplay overlay and change closebehavior - """ + """disable Easy Anti-Cheat and online play, disable uplay overlay and change closebehavior""" - uplayconfigpath = os.path.join(util.protonprefix(), 'drive_c/users/steamuser/Local Settings/Application Data/Ubisoft Game Launcher') + uplayconfigpath = os.path.join( + util.protonprefix(), + 'drive_c/users/steamuser/Local Settings/Application Data/Ubisoft Game Launcher', + ) if not os.path.exists(uplayconfigpath): os.makedirs(uplayconfigpath) uplayconfigfile = os.path.join(uplayconfigpath, 'settings.yml') if not os.path.isfile(uplayconfigfile): - with open(uplayconfigfile,"w+", encoding='utf-8') as f: - f.write("overlay:\n enabled: false\n fps_enabled: false\n warning_enabled: false\nuser:\n closebehavior: CloseBehavior_Close\n landingpage: LandingPageLastPlayedGame\n") + with open(uplayconfigfile, 'w+', encoding='utf-8') as f: + f.write( + 'overlay:\n enabled: false\n fps_enabled: false\n warning_enabled: false\nuser:\n closebehavior: CloseBehavior_Close\n landingpage: LandingPageLastPlayedGame\n' + ) # Replace launcher with game exe in proton arguments util.append_argument('-eac_launcher -nosplash') diff --git a/gamefixes-steam/813780.py b/gamefixes-steam/813780.py index 27c4752f..4fce3001 100755 --- a/gamefixes-steam/813780.py +++ b/gamefixes-steam/813780.py @@ -1,9 +1,9 @@ -""" Game fix Age of Empires II: DE -""" -#pylint: disable=C0103 +"""Game fix Age of Empires II: DE""" +# pylint: disable=C0103 from protonfixes import util + def main(): # Requires vcrun2019 to launch util.protontricks('vcrun2019') diff --git a/gamefixes-steam/816020.py b/gamefixes-steam/816020.py index cd6f1975..010d93cf 100755 --- a/gamefixes-steam/816020.py +++ b/gamefixes-steam/816020.py @@ -1,11 +1,13 @@ -""" Game fix for JUMP FORCE -""" -#pylint: disable=C0103 +"""Game fix for JUMP FORCE""" +# pylint: disable=C0103 from protonfixes import util + def main(): - util.replace_command('JUMP_FORCE.exe', 'JUMP_FORCE/Binaries/Win64/JUMP_FORCE-Win64-Shipping.exe') + util.replace_command( + 'JUMP_FORCE.exe', 'JUMP_FORCE/Binaries/Win64/JUMP_FORCE-Win64-Shipping.exe' + ) util.append_argument('-eac-nop-loaded') util.protontricks('hidewineexports=enable') diff --git a/gamefixes-steam/8190.py b/gamefixes-steam/8190.py index 93aded98..7b1f5686 100755 --- a/gamefixes-steam/8190.py +++ b/gamefixes-steam/8190.py @@ -1,12 +1,11 @@ -""" Just Cause 2 -""" -#pylint: disable=C0103 +"""Just Cause 2""" +# pylint: disable=C0103 from protonfixes import util + def main(): - """ Requires seccomp - """ + """Requires seccomp""" util.protontricks('d3dcompiler_43') util.protontricks('d3dcompiler_47') diff --git a/gamefixes-steam/834530.py b/gamefixes-steam/834530.py index 869251fc..eeb0516d 100755 --- a/gamefixes-steam/834530.py +++ b/gamefixes-steam/834530.py @@ -1,12 +1,11 @@ -""" Game fix for Yakuza Kiwami -""" -#pylint: disable=C0103 +"""Game fix for Yakuza Kiwami""" +# pylint: disable=C0103 from protonfixes import util + def main(): - """ Disable FSYNC - """ + """Disable FSYNC""" # Disable fsync to fix saving issues and hang on exit util.disable_fsync() diff --git a/gamefixes-steam/888790.py b/gamefixes-steam/888790.py index eec2163a..c63558bf 100644 --- a/gamefixes-steam/888790.py +++ b/gamefixes-steam/888790.py @@ -1,7 +1,8 @@ -""" Game fix for Sabbat of the Witch -""" +"""Game fix for Sabbat of the Witch""" + from protonfixes import util + def main(): """Install quartz, wmp11, qasf diff --git a/gamefixes-steam/893180.py b/gamefixes-steam/893180.py index 3f768a68..cc758a54 100755 --- a/gamefixes-steam/893180.py +++ b/gamefixes-steam/893180.py @@ -1,9 +1,9 @@ -""" Game fix Catherine Classic -""" -#pylint: disable=C0103 +"""Game fix Catherine Classic""" +# pylint: disable=C0103 from protonfixes import util + def main(): util.protontricks('directshow') util.protontricks('cinepak') diff --git a/gamefixes-steam/895870.py b/gamefixes-steam/895870.py index 034f02b7..d3e1defd 100755 --- a/gamefixes-steam/895870.py +++ b/gamefixes-steam/895870.py @@ -1,11 +1,10 @@ -""" Project Wingman -""" -#pylint: disable=C0103 +"""Project Wingman""" +# pylint: disable=C0103 from protonfixes import util + def main(): - """ Requires d3dcompiler_47 - """ + """Requires d3dcompiler_47""" util.protontricks('d3dcompiler_47') diff --git a/gamefixes-steam/906510.py b/gamefixes-steam/906510.py index a0501b26..b296b2f9 100755 --- a/gamefixes-steam/906510.py +++ b/gamefixes-steam/906510.py @@ -1,13 +1,11 @@ - -""" Game fix for Conception PLUS: Maidens of the Twelve Stars -""" -#pylint: disable=C0103 +"""Game fix for Conception PLUS: Maidens of the Twelve Stars""" +# pylint: disable=C0103 from protonfixes import util + def main(): - """ installs d3dcompiler_47 - """ + """installs d3dcompiler_47""" # https://github.com/ValveSoftware/Proton/issues/3493#issuecomment-1521636321 util.protontricks('d3dcompiler_47') diff --git a/gamefixes-steam/910830.py b/gamefixes-steam/910830.py index be4f76b5..5612f20d 100755 --- a/gamefixes-steam/910830.py +++ b/gamefixes-steam/910830.py @@ -1,12 +1,11 @@ -""" Game fix for Rebel Galaxy Outlaw -""" -#pylint: disable=C0103 +"""Game fix for Rebel Galaxy Outlaw""" +# pylint: disable=C0103 from protonfixes import util + def main(): - """ installs mfc42 - """ + """installs mfc42""" # https://github.com/ValveSoftware/Proton/issues/4216 util.protontricks('mfc42') diff --git a/gamefixes-steam/913740.py b/gamefixes-steam/913740.py index ab77ae0c..c4900df8 100755 --- a/gamefixes-steam/913740.py +++ b/gamefixes-steam/913740.py @@ -1,12 +1,11 @@ -""" Game fix for WORLD OF HORROR -""" -#pylint: disable=C0103 +"""Game fix for WORLD OF HORROR""" +# pylint: disable=C0103 from protonfixes import util + def main(): - """ Disable esync - """ + """Disable esync""" # esync causes occasional crashing util.disable_esync() diff --git a/gamefixes-steam/936160.py b/gamefixes-steam/936160.py index 792d3235..72126ec2 100644 --- a/gamefixes-steam/936160.py +++ b/gamefixes-steam/936160.py @@ -1,12 +1,13 @@ -""" Atelier Rorona ~The Alchemist of Arland~ DX +"""Atelier Rorona ~The Alchemist of Arland~ DX Missing voices/sounds in cutscenes Requires disabling the gstreamer protonaudioconverterbin plugin to get full audio in cutscenes. fixed by Swish in Protondb further stolen from marianoag by bitwolf """ -#pylint: disable=C0103 +# pylint: disable=C0103 from protonfixes import util + def main(): util.disable_protonmediaconverter() diff --git a/gamefixes-steam/963930.py b/gamefixes-steam/963930.py index a1a36d8e..e36097a0 100644 --- a/gamefixes-steam/963930.py +++ b/gamefixes-steam/963930.py @@ -1,8 +1,8 @@ -""" Contractors VR -""" -#pylint: disable=C0103 +"""Contractors VR""" +# pylint: disable=C0103 from protonfixes import util + def main(): - util.protontricks('vcrun2022') # Game crashes without it + util.protontricks('vcrun2022') # Game crashes without it diff --git a/gamefixes-steam/968370.py b/gamefixes-steam/968370.py index 47761a87..9835b799 100755 --- a/gamefixes-steam/968370.py +++ b/gamefixes-steam/968370.py @@ -1,10 +1,11 @@ -""" The Blind Prophet +"""The Blind Prophet garbled fonts & No cursive font (Segoe Script) """ -#pylint: disable=C0103 +# pylint: disable=C0103 from protonfixes import util + def main(): util.winedll_override('d3d9', 'd') util.protontricks('segoe_script') diff --git a/gamefixes-steam/976310.py b/gamefixes-steam/976310.py index fb3d310b..562c2a5e 100755 --- a/gamefixes-steam/976310.py +++ b/gamefixes-steam/976310.py @@ -1,9 +1,9 @@ -""" Game fix Mortal Kombat 11 -""" -#pylint: disable=C0103 +"""Game fix Mortal Kombat 11""" +# pylint: disable=C0103 from protonfixes import util + def main(): # Requires vcrun2019 to launch util.protontricks('vcrun2019') diff --git a/gamefixes-steam/976730.py b/gamefixes-steam/976730.py index 117b88d2..7cb76844 100755 --- a/gamefixes-steam/976730.py +++ b/gamefixes-steam/976730.py @@ -1,9 +1,9 @@ -""" Game fix Halo:MCC -""" -#pylint: disable=C0103 +"""Game fix Halo:MCC""" +# pylint: disable=C0103 from protonfixes import util + def main(): # Requires vcrun2019 to launch util.protontricks('vcrun2019') diff --git a/gamefixes-steam/9900.py b/gamefixes-steam/9900.py index 38cabeeb..ec144adc 100755 --- a/gamefixes-steam/9900.py +++ b/gamefixes-steam/9900.py @@ -1,9 +1,9 @@ -""" Game fix for Star Trek Online launcher -""" -#pylint: disable=C0103 +"""Game fix for Star Trek Online launcher""" + +# pylint: disable=C0103 from protonfixes import util + def main(): - """ Ensure d3dcompiler_47 is installed so the launcher window content is visible - """ + """Ensure d3dcompiler_47 is installed so the launcher window content is visible""" util.protontricks('d3dcompiler_47') diff --git a/gamefixes-steam/99300.py b/gamefixes-steam/99300.py index 7dbc8796..ccbe2988 100755 --- a/gamefixes-steam/99300.py +++ b/gamefixes-steam/99300.py @@ -1,10 +1,9 @@ -""" Game fix Renegade Ops -""" -#pylint: disable=C0103 +"""Game fix Renegade Ops""" +# pylint: disable=C0103 from protonfixes import util + def main(): - """ This fixed the black screen issue - """ + """This fixed the black screen issue""" util.protontricks('d3dcompiler_47') diff --git a/gamefixes-steam/997070.py b/gamefixes-steam/997070.py index 41176480..8bcc156a 100755 --- a/gamefixes-steam/997070.py +++ b/gamefixes-steam/997070.py @@ -1,9 +1,9 @@ -""" Game fix Marvel's Avengers -""" -#pylint: disable=C0103 +"""Game fix Marvel's Avengers""" +# pylint: disable=C0103 from protonfixes import util + def main(): # Requires vcrun2019 to launch util.protontricks('vcrun2019') diff --git a/gamefixes-steam/default.py b/gamefixes-steam/default.py index 74b84f64..3819925c 100755 --- a/gamefixes-steam/default.py +++ b/gamefixes-steam/default.py @@ -1,19 +1,18 @@ -""" Default file for Steam game fixes - This file is always executed for games that are identified as Steam games, - even if no game fix is present. It is run before game fixes are applied. +"""Default file for Steam game fixes +This file is always executed for games that are identified as Steam games, +even if no game fix is present. It is run before game fixes are applied. """ import sys from protonfixes import util + def main(): - """ global defaults - """ + """global defaults""" # Steam commandline def use_steam_commands(): - """ Parse aliases from Steam launch options - """ + """Parse aliases from Steam launch options""" pf_alias_list = list(filter(lambda item: '-pf_' in item, sys.argv)) for pf_alias in pf_alias_list: diff --git a/gamefixes-umu/default.py b/gamefixes-umu/default.py index 699f2f15..ae5b9248 100755 --- a/gamefixes-umu/default.py +++ b/gamefixes-umu/default.py @@ -1,8 +1,8 @@ -""" Default file for UMU game fixes - This file is always executed for games that are identified as UMU games, - even if no game fix is present. It is run before game fixes are applied. +"""Default file for UMU game fixes +This file is always executed for games that are identified as UMU games, +even if no game fix is present. It is run before game fixes are applied. """ + def main(): - """ global defaults - """ + """global defaults""" diff --git a/gamefixes-umu/umu-2016590.py b/gamefixes-umu/umu-2016590.py index 8c01f30f..537150ba 100644 --- a/gamefixes-umu/umu-2016590.py +++ b/gamefixes-umu/umu-2016590.py @@ -1,18 +1,28 @@ -""" Game fix for Dark and Darker -""" -#pylint: disable=C0103 +"""Game fix for Dark and Darker""" +# pylint: disable=C0103 from protonfixes import util + def main(): - """ Installs wininet and urlmon in order to allow Blacksmith Launcher to properly install the game. - - This also has the side effect of breaking voip in DungeonCrawler.exe, so we add registry entries - to only use native wininet and urlmon for Blacksmith.exe, and not DungeonCrawler.exe. + """Installs wininet and urlmon in order to allow Blacksmith Launcher to properly install the game. + + This also has the side effect of breaking voip in DungeonCrawler.exe, so we add registry entries + to only use native wininet and urlmon for Blacksmith.exe, and not DungeonCrawler.exe. """ util.protontricks('wininet') util.protontricks('urlmon') - util.regedit_add('HKEY_CURRENT_USER\\Software\\Wine\\AppDefaults\\DungeonCrawler.exe\\DllOverrides','wininet','REG_SZ','builtin') - util.regedit_add('HKEY_CURRENT_USER\\Software\\Wine\\AppDefaults\\DungeonCrawler.exe\\DllOverrides','urlmon','REG_SZ','builtin') + util.regedit_add( + 'HKEY_CURRENT_USER\\Software\\Wine\\AppDefaults\\DungeonCrawler.exe\\DllOverrides', + 'wininet', + 'REG_SZ', + 'builtin', + ) + util.regedit_add( + 'HKEY_CURRENT_USER\\Software\\Wine\\AppDefaults\\DungeonCrawler.exe\\DllOverrides', + 'urlmon', + 'REG_SZ', + 'builtin', + ) diff --git a/gamefixes-umu/umu-model2.py b/gamefixes-umu/umu-model2.py index 3ed6bbb5..7faaea28 100755 --- a/gamefixes-umu/umu-model2.py +++ b/gamefixes-umu/umu-model2.py @@ -1,12 +1,11 @@ -""" Application fix Model 2 emulator -""" +"""Application fix Model 2 emulator""" # from protonfixes import util + def main(): - """ installs d3dcompiler_42, d3dx9_42, d3dx9, xact, xact_64 - """ + """installs d3dcompiler_42, d3dx9_42, d3dx9, xact, xact_64""" util.protontricks('d3dcompiler_42') util.protontricks('d3dx9_42') diff --git a/gamefixes-umu/umu-starcitizen.py b/gamefixes-umu/umu-starcitizen.py index 74faced2..8cca041e 100644 --- a/gamefixes-umu/umu-starcitizen.py +++ b/gamefixes-umu/umu-starcitizen.py @@ -1,37 +1,43 @@ -""" Game fix for Star Citizen -""" -#pylint: disable=C0103 +"""Game fix for Star Citizen""" +# pylint: disable=C0103 import os -from protonfixes import util # pylint: disable=E0401 +from protonfixes import util # pylint: disable=E0401 from protonfixes.logger import log + def main(): - """ EAC Workaround - """ + """EAC Workaround""" - #eac workaround - util.set_environment('EOS_USE_ANTICHEATCLIENTNULL','1') + # eac workaround + util.set_environment('EOS_USE_ANTICHEATCLIENTNULL', '1') - #needed for nvidia vulkan - util.set_environment('WINE_HIDE_NVIDIA_GPU','1') + # needed for nvidia vulkan + util.set_environment('WINE_HIDE_NVIDIA_GPU', '1') - #needed for amd vulkan - util.set_environment('dual_color_blend_by_location','true') + # needed for amd vulkan + util.set_environment('dual_color_blend_by_location', 'true') - #override for white/black launcher + # override for white/black launcher util.winedll_override('libglesv2', 'builtin') - #override for nvidia cards + # override for nvidia cards util.winedll_override('nvapi,nvapi64', 'disabled') - #allow the RSI Launcher to auto-update itself + # allow the RSI Launcher to auto-update itself util.winedll_override('powershell.exe', 'disabled') - environments = ["LIVE","PTU","EPTU","TECH-PREVIEW"] + environments = ['LIVE', 'PTU', 'EPTU', 'TECH-PREVIEW'] for env in environments: - #launcher fails to create these directories in wine so create them here instead - #https://github.com/starcitizen-lug/knowledge-base/wiki#game-updates - envPath = os.path.join(util.protonprefix(), "drive_c","Program Files", "Roberts Space Industries", "StarCitizen", env) + # launcher fails to create these directories in wine so create them here instead + # https://github.com/starcitizen-lug/knowledge-base/wiki#game-updates + envPath = os.path.join( + util.protonprefix(), + 'drive_c', + 'Program Files', + 'Roberts Space Industries', + 'StarCitizen', + env, + ) if not os.path.exists(envPath): os.makedirs(envPath) - log("created " + envPath) + log('created ' + envPath) diff --git a/gamefixes-umu/winetricks-gui.py b/gamefixes-umu/winetricks-gui.py index b0b9e185..cba424e1 100755 --- a/gamefixes-umu/winetricks-gui.py +++ b/gamefixes-umu/winetricks-gui.py @@ -1,11 +1,10 @@ -""" Call Winetricks GUI -""" -#pylint: disable=C0103 +"""Call Winetricks GUI""" +# pylint: disable=C0103 from protonfixes import util + def main(): - """ Requires seccomp - """ + """Requires seccomp""" util.protontricks('gui') diff --git a/gamefixes-zoomplatform/umu-240200.py b/gamefixes-zoomplatform/umu-240200.py index d62c97e8..6f2584cf 100644 --- a/gamefixes-zoomplatform/umu-240200.py +++ b/gamefixes-zoomplatform/umu-240200.py @@ -1,9 +1,9 @@ -""" Duke Nukem: Manhattan Project - Enhanced Edition -""" -#pylint: disable=C0103 +"""Duke Nukem: Manhattan Project - Enhanced Edition""" +# pylint: disable=C0103 from protonfixes import util + def main(): util.winedll_override('d3d8', 'n,b') util.protontricks('vcrun2019') diff --git a/gamefixes-zoomplatform/umu-4bff76f4-566a-4714-b481-95d3343afe22.py b/gamefixes-zoomplatform/umu-4bff76f4-566a-4714-b481-95d3343afe22.py index 19ced8c9..0ac79065 100644 --- a/gamefixes-zoomplatform/umu-4bff76f4-566a-4714-b481-95d3343afe22.py +++ b/gamefixes-zoomplatform/umu-4bff76f4-566a-4714-b481-95d3343afe22.py @@ -1,9 +1,9 @@ -""" Incoming Trilogy -""" -#pylint: disable=C0103 +"""Incoming Trilogy""" +# pylint: disable=C0103 from protonfixes import util + def main(): util.winedll_override('d3d8', 'n,b') util.winedll_override('ddraw', 'b')