simons-public / protonfixes

A module for applying fixes at runtime to unsupported games with Steam Proton without changing game installation files
https://simons-public.github.io/protonfixes/
Other
233 stars 114 forks source link

Make protonfixes work with older proton versions #106

Closed mrjackv closed 4 years ago

mrjackv commented 4 years ago

As per title, this PR allows older versions of proton to work with protonfixes. This is achieved via a proxy class that redirects attribute access to legacy proton attributes. While this does not guarantee a 1:1 mapping between the old and new proton, it allows all the current functionality of util.py to work. Due to the way that the redirect is accomplished if a future version of protonfixes wishes to drop support for older versions of proton all that is required is to remove the protonmain_compat import and use

import __main__ as protonmain