From 19e5aefa2f41ebd4389bf27136adacf3e75d3502 Mon Sep 17 00:00:00 2001 From: xXJSONDeruloXx Date: Tue, 19 May 2026 14:26:39 -0400 Subject: feat: add fsr4 runtime manifests --- src/index.tsx | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'src/index.tsx') 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(null); + const [fgmodInfo, setFgmodInfo] = useState(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() { {pathExists === true ? ( <> -- cgit v1.2.3