From e8e469f99078858dc953663cba6f3428e80b1c5d Mon Sep 17 00:00:00 2001
From: xXJSONDeruloXx <danielhimebauch@gmail.com>
Date: Sat, 5 Sep 2026 23:44:37 -0400
Subject: refactor: delegate runtime checks to lsfg-vk

---
 src/components/Content.tsx | 21 +++++++++++----------
 1 file changed, 11 insertions(+), 10 deletions(-)

(limited to 'src/components/Content.tsx')

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
-- 
cgit v1.2.3

