diff options
| author | Janleyx <242423638+Janleyx@users.noreply.github.com> | 2026-07-20 17:35:23 -0400 |
|---|---|---|
| committer | Janleyx <242423638+Janleyx@users.noreply.github.com> | 2026-07-20 17:35:23 -0400 |
| commit | 1260aa400e6d19e8d1cbc3d887c8ddcff3058be9 (patch) | |
| tree | ee392423063c12f150ef4e2a496c7900a48bfcc2 /src/components/UsageInstructions.tsx | |
| parent | ff3213291a56ea8de73335adcceed3962a40114d (diff) | |
| download | decky-lsfg-vk-1260aa400e6d19e8d1cbc3d887c8ddcff3058be9.tar.gz decky-lsfg-vk-1260aa400e6d19e8d1cbc3d887c8ddcff3058be9.zip | |
wrap Armada launch inside lsfg script
Diffstat (limited to 'src/components/UsageInstructions.tsx')
| -rw-r--r-- | src/components/UsageInstructions.tsx | 42 |
1 files changed, 2 insertions, 40 deletions
diff --git a/src/components/UsageInstructions.tsx b/src/components/UsageInstructions.tsx index 02d0eb3..5f032b8 100644 --- a/src/components/UsageInstructions.tsx +++ b/src/components/UsageInstructions.tsx @@ -1,31 +1,6 @@ -import { useEffect, useState } from "react"; import { PanelSectionRow } from "@decky/ui"; -import { getLaunchOption } from "../api/lsfgApi"; export function UsageInstructions() { - const [launchOption, setLaunchOption] = useState("~/lsfg %command%"); - const [launchExplanation, setLaunchExplanation] = useState( - "The LSFG wrapper configures frame generation before launching the game." - ); - - useEffect(() => { - let active = true; - - getLaunchOption() - .then((result) => { - if (!active) return; - if (result.launch_option) setLaunchOption(result.launch_option); - if (result.explanation) setLaunchExplanation(result.explanation); - }) - .catch(() => { - // Keep the standard launch option visible if the backend is unavailable. - }); - - return () => { - active = false; - }; - }, []); - return ( <> <PanelSectionRow> @@ -72,20 +47,7 @@ export function UsageInstructions() { textAlign: "center" }} > - <strong>{launchOption}</strong> - </div> - </PanelSectionRow> - - <PanelSectionRow> - <div - style={{ - fontSize: "11px", - lineHeight: "1.3", - opacity: "0.7", - marginTop: "4px" - }} - > - {launchExplanation} + <strong>~/lsfg %command%</strong> </div> </PanelSectionRow> @@ -98,7 +60,7 @@ export function UsageInstructions() { marginTop: "8px" }} > - The configuration is stored in ~/.config/lsfg-vk/conf.toml and hot-reloads while games are running. +The configuration is stored in ~/.config/lsfg-vk/conf.toml and hot-reloads while games are running. </div> </PanelSectionRow> </> |
