Commit Graph
10 Commits
Author SHA1 Message Date
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
Hari Rana 5108854a17 fsr: Fix more FSR related issues (#2483) 2023-01-03 18:30:25 -05:00
Hari Rana 65ca2f7ed4 frontend: Fix FSR (#2435) 2023-01-02 01:21:19 -05:00
Mirko BrombinandKinsteen 01732b1a91 backend: General performance improvements and code cleanup
This commit is the first of many to avoid the back-end rewrite.


* document Result object

* document Diff class

* remove layered env code

* remove Notifications since deprecated

* fix method name (PEP8)

* add convenient method to force kill wineserver when stalled

* use force_f_stalled in runner

* use Result obj in Downloader.download

* handle the Result obj in ComponentManager.download

* code cleanup

* remove old RunnerName type

* remove old note

repositories can now instruct this changes

* code cleanup

* code cleanup

* code cleanup

* code cleanup

* new trailing newline

* extend __validate_template method with essential paths

* code cleanup

* improve offline check

the old method was too slow, the new one just checks the headers with curl, which is much faster

* remove deprecations and old migrations

* fixes #2345

* fix typo

Co-authored-by: Kinsteen <pitiqui69@gmail.com>

* fix exception string

* remove cabextract binary check

since it's already done in health.py

* remove reportMissingImports

useless now since the main package moved from src to bottles

* add PycURL

* replace urllib with pycurl in crucial points

Co-authored-by: Kinsteen <pitiqui69@gmail.com>
2022-12-12 20:23:15 +01:00
mirkobrombin 115d7e6156 misc: Remove FSR level and fix selection
removed selector since quality is set according to the game resolution, `WINE_FULLSCREEN_FSR_STRENGTH`can still be set by the user manually

fix #2312
2022-12-08 21:33:46 +01:00
Mirko Brombin c2dffab868 deprecation: pulseaudio_latency
removed from ui and overrides, it's enabled by default for Gaming/Application environments and can be toggled by env vars or the bottle.yml directly
2022-10-09 15:48:47 +02:00
David Martos 604ccb9909 Safely access program "dict" keys 2022-10-03 09:58:30 +02:00
mirkobrombin 1f720bc377 fix #2006 2022-08-31 14:04:51 +02:00
Mirko Brombin ac45b53310 fix #1949 2022-08-18 18:04:08 +02:00
mirkobrombin 72667c7b29 split backend/frontend modules
work in progress, the backend still access some frontend stuffs
2022-08-07 23:09:46 +02:00