diff options
| author | xXJSONDeruloXx <danielhimebauch@gmail.com> | 2025-07-17 21:35:54 -0400 |
|---|---|---|
| committer | xXJSONDeruloXx <danielhimebauch@gmail.com> | 2025-07-17 21:35:54 -0400 |
| commit | f2870ff308131a0a4c970edf36bb88aac10a6175 (patch) | |
| tree | bd80789158659d7dce0544c90dceb69dcb9047a4 | |
| parent | 620c04f75ad0f6025cc26f73dd07c466d6e1c62e (diff) | |
| download | decky-lsfg-vk-f2870ff308131a0a4c970edf36bb88aac10a6175.tar.gz decky-lsfg-vk-f2870ff308131a0a4c970edf36bb88aac10a6175.zip | |
fix dll config write crash, add multiplier = 1
| -rw-r--r-- | py_modules/lsfg_vk/plugin.py | 11 | ||||
| -rw-r--r-- | src/components/ConfigurationSection.tsx | 13 |
2 files changed, 18 insertions, 6 deletions
diff --git a/py_modules/lsfg_vk/plugin.py b/py_modules/lsfg_vk/plugin.py index a8fed53..c56765b 100644 --- a/py_modules/lsfg_vk/plugin.py +++ b/py_modules/lsfg_vk/plugin.py @@ -67,6 +67,17 @@ class Plugin: Returns: DllDetectionResponse dict with detection status and path info """ + return self.dll_detection_service.check_lossless_scaling_dll() + + async def check_lossless_scaling_dll_and_update_config(self) -> Dict[str, Any]: + """Check for DLL and automatically update configuration if found + + This method should only be used during installation or when explicitly + requested by the user, not for routine DLL detection checks. + + Returns: + DllDetectionResponse dict with detection status and path info + """ result = self.dll_detection_service.check_lossless_scaling_dll() # Convert to dict to allow modification diff --git a/src/components/ConfigurationSection.tsx b/src/components/ConfigurationSection.tsx index a1c175a..deb8fba 100644 --- a/src/components/ConfigurationSection.tsx +++ b/src/components/ConfigurationSection.tsx @@ -48,16 +48,17 @@ export function ConfigurationSection({ <PanelSectionRow> <SliderField label="FPS Multiplier" - description="Traditional FPS multiplier value" + description="Traditional FPS multiplier value (1 = no interpolation)" value={config.multiplier} - min={2} + min={1} max={4} step={1} - notchCount={3} + notchCount={4} notchLabels={[ - { notchIndex: 0, label: "2X" }, - { notchIndex: 1, label: "3X" }, - { notchIndex: 2, label: "4X" } + { notchIndex: 0, label: "1X" }, + { notchIndex: 1, label: "2X" }, + { notchIndex: 2, label: "3X" }, + { notchIndex: 3, label: "4X" } ]} onChange={(value) => onConfigChange('multiplier', value)} /> |
