1
0
Fork 0
mirror of synced 2024-09-14 16:38:00 +12:00
Commit graph

13 commits

Author SHA1 Message Date
loathingKernel
a3557a0b18
Wrappers/Proton/Wine WIP 2023-12-03 17:11:47 +02:00
loathingKernel
89df9806b5
Cleanup:
* Use `vars()` instead of directly accessing `__dict__`
* Remove `auto_update` from RareGame's metadata
* Correct check for updating the Steam App ID (We want to keep any changes from the user)
* Collect both Wine and Proton prefixes when removing overlay registry keys.
* Add few convenience functions in config_helper and paths.
2023-12-03 17:11:47 +02:00
loathingKernel
9bd73f3440
SteamGrades: Return the Steam game ID with the grade and store it.
This allows compatibility tools that use the SteamAppId environment
variable to make decisions or apply fixes do their job more accurately.

Also use the stored variable to provide a link to protondb through
the grade label in GameInfo.

The steam grades now use the orjson library to load Steam's ~6MB
database faster.
2023-12-03 17:11:46 +02:00
loathingKernel
5485e97b32
ConfigHelper: Fix an issue with wine prefix resolution
This probably should be split into separate wine and proton
discovery functions.
2023-12-03 17:11:46 +02:00
loathingKernel
1caa53071b
ConfigHelper: Add generic functions to query config options with fallback
* Extend `get_wine_prefix` and `get_wine_prefixes` to take Proton prefixes
into account.
2023-12-03 17:11:44 +02:00
loathingKernel
f101c6d7cd
ConfigHelper: Add wine related functions
`get_wine_prefixes`: Returns all prefixes defined in legendary's configuration
`get_wine_prefix`: Returns wine prefix associated with a game
2023-12-03 17:10:56 +02:00
loathingKernel
b1d438c34c
config_helper: Don't remove section when removing the last option
This is a synchronization nightmare as it is now,
so keep the section to avoid excessive checks.
2023-03-29 14:04:45 +03:00
lennard
e208daf545
Fix wrong import from migration 2022-10-26 21:57:04 +02:00
lennard
923aa1b90d
Migrate to legendary 0.20.30 2022-10-26 21:36:16 +02:00
Dummerle
4a28fd3d0d
Fix config_helper.py 2022-09-04 22:49:43 +02:00
loathingKernel
4951743bbf ConfigHelper: Protect name space from globals 2022-09-02 17:53:56 +03:00
Dummerle
f081f3943d
Fix bug with "%" in lineedits 2022-03-14 17:23:52 +01:00
Dummerle
e916301999
Add config_helper.py to automatically check sections and options 2022-02-05 14:48:50 +01:00