Skip to content

Commit

Permalink
Add fix for Crashday Redline Edition (508980) (#70)
Browse files Browse the repository at this point in the history
To avoid a black screen at startup set `FSAA `to `0` in `graphics.config`.

https://www.protondb.com/app/508980
  • Loading branch information
Lucki authored and simons-public committed Dec 29, 2018
1 parent 4d62ae9 commit cfa4605
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions protonfixes/gamefixes/508980.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
""" Game fix for Crashday Redline Edition
"""

# pylint: disable=C0103

import json
from protonfixes import util


def main():
""" Change setting FSAA to 0 in 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') as file:
json_data = json.load(file)
if 'FSAA' in json_data:
json_data['FSAA'] = 0
with open(config, 'w') as file:
json.dump(json_data, file, indent=4)

0 comments on commit cfa4605

Please sign in to comment.