Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
umu_proton: fix bug when offline and finding latest proton
- In the case the user is offline and there exists both a GE-Proton9-10 and GE-Proton9-9, GE-Proton9-9 would be used which may downgrad the prefix if it was created using 9-10. This is because during the max function's comparison, the numeric parts of the strings would not be handled as expected. Moreover, the max function differs from sorted when determining the maximum value when the strings contain numeric parts such that sorted(foo)[0] != max(foo) where foo is an iterable containing string elements with numeric parts appended. To solve this, we need to specify a custom sort routine that handles the numeric parts
- Loading branch information