Files
Lake ChanandMirko Brombin 86f098cadc Migrate Config from dict to object (#2464)
* refactor: migrate config from dict to object

* fix: type hint import

* fix: BottleConfig.load()

* fix: config loading in BackupManager.import_backup()

* fix: Remove unused import

* fix: more guard code, type hints and Config object usage

* fix: a potential crash when SteamManager.get_app_config() failed

* Revert "fix: Remove unused import"

This reverts commit 2d48a4e08a.

* add: new config field

* fix: Config object value read

* misc: remove review TODO comments

* adapt to new BottleConfig object

* fix RunAsync usage

* add: BottleConfig._fix()

* fix: type hint and Config object usage

* fix: typo in FSR setting default value

* adapt to new BottleConfig object

* remove unnecessary DictCompat method

* add: BottleConfig._filter()

* fix: TemplateManager.new()

* misc: critical guard code

* fix: typo in commit b7ed61e678

* misc: more type hinting

* Revert "remove unnecessary DictCompat method"

This reverts commit 265633e733.

* fix crash when user choose Cancel in ProtonAlertDialog

* fix force stop all programs not work

* adapt NVAPIComponent.check_bottle_nvngx to Config object

* Better DictCompatMixIn

* InstallerManager.__set_parameters incorrect adopt

* fix typo in cbe1dc760b

* adopt LibraryManager.download_thumbnail to Config object

* serialize Config object to yaml automatically

* fix translation and remove workaround in 0830fddbc9

* fix missing locale for Chinese

* comment

* fix incorrect variable init position

* remove 'in' extensions and some bugfix

* fix executable filemode

Co-authored-by: Mirko Brombin <send@mirko.pm>
2023-01-20 17:02:40 +01:00

58 lines
1.8 KiB
Python

class Samples:
data = {}
environments = {
"gaming": {
"Runner": "wine",
"Parameters": {
"dxvk": True,
# "nvapi": True,
"vkd3d": True,
"sync": "esync",
"fsr": False,
"discrete_gpu": True,
"pulseaudio_latency": False
},
"Installed_Dependencies": [
"d3dx9",
"msls31",
"arial32",
"times32",
"courie32",
"d3dcompiler_43",
"d3dcompiler_47"
]
},
"application": {
"Runner": "wine",
"Parameters": {
"dxvk": True,
"vkd3d": True,
"pulseaudio_latency": False
},
"Installed_Dependencies": [
"arial32",
"times32",
"courie32",
# "mono",
# "dotnet40",
# "dotnet48"
]
}
}
bottles_to_steam_relations = {
"MANGOHUD": ("mangohud", True),
"OBS_VKCAPTURE": ("obsvkc", True),
"ENABLE_VKBASALT": ("vkbasalt", True),
"WINEESYNC": ("sync", "esync"),
"WINEFSYNC": ("sync", "fsync"),
"WINEFSYNC_FUTEX2": ("sync", "futex2"),
"WINE_FULLSCREEN_FSR": ("fsr", True),
"WINE_FULLSCREEN_FSR_STRENGTH": ("fsr_sharpening_strength", 2),
"WINE_FULLSCREEN_FSR_MODE": ("fsr_quality_mode", "none"),
"DRI_PRIME": ("discrete_gpu", True),
"__NV_PRIME_RENDER_OFFLOAD": ("discrete_gpu", True),
"PULSE_LATENCY_MSEC": ("pulseaudio_latency", True),
"PROTON_EAC_RUNTIME": ("use_eac_runtime", True),
"PROTON_BATTLEYE_RUNTIME": ("use_be_runtime", True)
}