Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
simons-public authored Oct 6, 2018
1 parent 689663e commit 39dbce6
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,40 @@ Game fixes written in python and are named by the Steam game ID with the extensi
- Use docstrings and comment thoroughly. There will likely be people without python experience making game fixes and good commented examples will help
- Do not use any hard-coded paths, Steam may not always be installed in the same location.
- Check your gamefix with pylint. You can safely disable warning C0103, modules named by Steam ID will never conform to snake_case naming style.
- Pull requests are welcome!

## Example game fixes
`377840.py` - Changing the executable launched
```
import os
import sys
def main():
""" Changes the proton argument from the launcher to the game
"""
print('Applying FINAL FANTASY IX Game Fixes')
# Fix crackling audio
os.environ['PULSE_LATENCY_MSEC'] = '60'
# Replace launcher with game exe in proton arguments
for idx, env in enumerate(sys.argv):
if 'FF9_Launcher' in env:
sys.argv[idx] = env.replace('FF9_Launcher.exe', 'x64/FF9.exe')
```

`410900.py` - Running a winetricks verb
```
from protonfixes import util
def main():
""" Uses winetricks to install the ole32 verb
"""
print('Applying fixes for Forts')
if not util.checkinstalled('ole32'):
util.protontricks('ole32')
```

0 comments on commit 39dbce6

Please sign in to comment.