1
0
Fork 0
mirror of synced 2024-06-02 10:44:40 +12:00
Commit graph

14 commits

Author SHA1 Message Date
loathingKernel 582b83c12b WIP 2024-02-12 21:52:08 +02:00
loathingKernel 52d2ca7cc7 Config: Re-arrange arguments to match the rest of the function signatures 2024-02-12 21:52:08 +02:00
loathingKernel cd1743cb92 GameSettings: Re-strucure settings widgets
The default widgets only implement the settings for the `default` "app_name"
The game specific widgets sub-class the default widgets and implement
whatever they additionally need locally.

Remove multiple calls to save config and save when the game settings gets hidden.
2024-02-12 21:52:07 +02:00
loathingKernel 99d0bca5fc ConfigHelper: Extend with specialized methods for environment variables and wine/proton prefixes 2024-01-19 12:12:33 +02:00
loathingKernel 1a7f89687b ConfigHelper: Fix an issue with wine prefix resolution
This probably should be split into separate wine and proton
discovery functions.
2023-12-24 21:08:26 +02:00
loathingKernel 83328f400d 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-24 21:08:26 +02:00
loathingKernel f6a372cc1f 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-24 21:08:26 +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