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

Add protonversion.py #112

Closed mrjackv closed 4 years ago

mrjackv commented 4 years ago

Aggregate all the version-related functions of protonmain_compat.py and utils.py into protonversion.py Improve version retrieval and checking by using the version file for both timestamp and release version (as it is more accurate than CURRENT_PREFIX_VERSION) Implement DeprecatedSince decorator, when applied to a function and given a suitable version either in timestamp form (int) or version form (string) it will execute the function only if the version is lower (excluding) than the one specified, should be useful in cases outlined here

simons-public commented 4 years ago

Wow, lots of great work @mrjackv, I especially like the deprecated decorator