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/index.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/index.tsx')
| -rw-r--r-- | src/index.tsx | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/src/index.tsx b/src/index.tsx index fb9635d..4a9a9f6 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -7,8 +7,17 @@ import { checkFGModPath } from "./api"; import { safeAsyncOperation } from "./utils"; import { TIMEOUTS } from "./utils/constants"; +type FgmodInfo = { + exists: boolean; + version?: string | null; + selected_fsr4_variant?: string | null; + selected_fsr4_variant_label?: string | null; + install_manifest_present?: boolean; +}; + function MainContent() { const [pathExists, setPathExists] = useState<boolean | null>(null); + const [fgmodInfo, setFgmodInfo] = useState<FgmodInfo | null>(null); useEffect(() => { const checkPath = async () => { @@ -16,7 +25,10 @@ function MainContent() { async () => await checkFGModPath(), 'MainContent -> checkPath' ); - if (result) setPathExists(result.exists); + if (result) { + setFgmodInfo(result); + setPathExists(result.exists); + } }; checkPath(); // Initial check @@ -29,6 +41,7 @@ function MainContent() { <OptiScalerControls pathExists={pathExists} setPathExists={setPathExists} + fgmodInfo={fgmodInfo} /> {pathExists === true ? ( <> |
