summaryrefslogtreecommitdiff
path: root/src/components/Content.tsx
diff options
context:
space:
mode:
authorxXJSONDeruloXx <danielhimebauch@gmail.com>2026-09-05 23:44:37 -0400
committerxXJSONDeruloXx <danielhimebauch@gmail.com>2026-09-05 23:44:37 -0400
commite8e469f99078858dc953663cba6f3428e80b1c5d (patch)
tree6d0e6730bf439ec2cb5b3564c636ce8342466df1 /src/components/Content.tsx
parent77656ad88655effe0411808baf2fb90c629a24f8 (diff)
downloaddecky-lsfg-vk-e8e469f99078858dc953663cba6f3428e80b1c5d.tar.gz
decky-lsfg-vk-e8e469f99078858dc953663cba6f3428e80b1c5d.zip
refactor: delegate runtime checks to lsfg-vk
Diffstat (limited to 'src/components/Content.tsx')
-rw-r--r--src/components/Content.tsx21
1 files changed, 11 insertions, 10 deletions
diff --git a/src/components/Content.tsx b/src/components/Content.tsx
index 5988e79..aab2fb8 100644
--- a/src/components/Content.tsx
+++ b/src/components/Content.tsx
@@ -1,6 +1,6 @@
import { useEffect } from "react";
import { PanelSection, showModal, ButtonItem, PanelSectionRow } from "@decky/ui";
-import { useInstallationStatus, useDllDetection, useLsfgConfig } from "../hooks/useLsfgHooks";
+import { useInstallationStatus, useLsfgConfig } from "../hooks/useLsfgHooks";
import { useProfileManagement } from "../hooks/useProfileManagement";
import { useInstallationActions } from "../hooks/useInstallationActions";
import { StatusDisplay } from "./StatusDisplay";
@@ -21,11 +21,12 @@ export function Content() {
isInstalled,
installationStatus,
setIsInstalled,
- setInstallationStatus
+ setInstallationStatus,
+ losslessScalingInstalled,
+ losslessScalingStatus,
+ checkInstallation
} = useInstallationStatus();
- const { dllDetected, dllDetectionStatus } = useDllDetection();
-
const {
config,
loadLsfgConfig,
@@ -59,11 +60,11 @@ export function Content() {
};
const onInstall = () => {
- handleInstall(setIsInstalled, setInstallationStatus, loadLsfgConfig);
+ handleInstall(setIsInstalled, setInstallationStatus, loadLsfgConfig, checkInstallation);
};
const onUninstall = () => {
- handleUninstall(setIsInstalled, setInstallationStatus);
+ handleUninstall(setIsInstalled, setInstallationStatus, checkInstallation);
};
const handleShowNerdStuff = () => {
@@ -87,10 +88,10 @@ export function Content() {
/>
<StatusDisplay
- dllDetected={dllDetected}
- dllDetectionStatus={dllDetectionStatus}
isInstalled={isInstalled}
installationStatus={installationStatus}
+ losslessScalingInstalled={losslessScalingInstalled}
+ losslessScalingStatus={losslessScalingStatus}
/>
</>
)}
@@ -167,10 +168,10 @@ export function Content() {
{isInstalled && (
<>
<StatusDisplay
- dllDetected={dllDetected}
- dllDetectionStatus={dllDetectionStatus}
isInstalled={isInstalled}
installationStatus={installationStatus}
+ losslessScalingInstalled={losslessScalingInstalled}
+ losslessScalingStatus={losslessScalingStatus}
/>
<InstallationButton