-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: format gamefix modules through ruff
- Enforces single quotes, a line length of 88, and updates the format of comments
- Loading branch information
Showing
273 changed files
with
1,299 additions
and
1,189 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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', '') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.