diff options
| author | xXJSONDeruloXx <danielhimebauch@gmail.com> | 2026-05-19 14:26:39 -0400 |
|---|---|---|
| committer | xXJSONDeruloXx <danielhimebauch@gmail.com> | 2026-05-19 14:26:39 -0400 |
| commit | 19e5aefa2f41ebd4389bf27136adacf3e75d3502 (patch) | |
| tree | c7f2228aa45fd4325a68de6fe6f32864f383791c /src/components/CustomPathOverride.tsx | |
| parent | 9e12c11b6189972ea04de454dad5c8554efe657a (diff) | |
| download | Decky-Framegen-feat/asset-manifest-fsr4-variants.tar.gz Decky-Framegen-feat/asset-manifest-fsr4-variants.zip | |
feat: add fsr4 runtime manifestsfeat/asset-manifest-fsr4-variants
Diffstat (limited to 'src/components/CustomPathOverride.tsx')
| -rw-r--r-- | src/components/CustomPathOverride.tsx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/components/CustomPathOverride.tsx b/src/components/CustomPathOverride.tsx index 4effc6c..af47735 100644 --- a/src/components/CustomPathOverride.tsx +++ b/src/components/CustomPathOverride.tsx @@ -37,6 +37,7 @@ interface ManualPatchControlsProps { isAvailable: boolean; onManualModeChange?: (enabled: boolean) => void; dllName: string; + fsr4Variant: string; } interface PickerState { @@ -57,7 +58,7 @@ const formatResultMessage = (result: ApiResponse | null) => { return result.message || result.output || "Operation failed."; }; -export const ManualPatchControls = ({ isAvailable, onManualModeChange, dllName }: ManualPatchControlsProps) => { +export const ManualPatchControls = ({ isAvailable, onManualModeChange, dllName, fsr4Variant }: ManualPatchControlsProps) => { const [isEnabled, setEnabled] = useState(false); const [defaults, setDefaults] = useState<PathDefaults>(INITIAL_DEFAULTS); const [pickerState, setPickerState] = useState<PickerState>(INITIAL_PICKER_STATE); @@ -166,7 +167,7 @@ export const ManualPatchControls = ({ isAvailable, onManualModeChange, dllName } try { const response = action === "patch" - ? await runManualPatch(selectedPath, dllName) + ? await runManualPatch(selectedPath, dllName, fsr4Variant) : await runManualUnpatch(selectedPath); setOperationResult(response ?? { status: "error", message: "No response from backend." }); } catch (err) { @@ -178,7 +179,7 @@ export const ManualPatchControls = ({ isAvailable, onManualModeChange, dllName } setBusy(false); } }, - [selectedPath, dllName] + [selectedPath, dllName, fsr4Variant] ); const handleToggle = (value: boolean) => { |
