From 1cc6a781fe7d6c053b2eb59aa79766a859c66209 Mon Sep 17 00:00:00 2001
From: xXJSONDeruloXx <danielhimebauch@gmail.com>
Date: Fri, 26 Sep 2025 20:14:44 -0400
Subject: revised approach, pick dir then patch in plugin ui itself

---
 src/components/OptiScalerControls.tsx | 17 +++--------------
 1 file changed, 3 insertions(+), 14 deletions(-)

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

diff --git a/src/components/OptiScalerControls.tsx b/src/components/OptiScalerControls.tsx
index 5dac6d0..3a288e8 100644
--- a/src/components/OptiScalerControls.tsx
+++ b/src/components/OptiScalerControls.tsx
@@ -10,8 +10,7 @@ import { ClipboardCommands } from "./ClipboardCommands";
 import { InstructionCard } from "./InstructionCard";
 import { OptiScalerWiki } from "./OptiScalerWiki";
 import { UninstallButton } from "./UninstallButton";
-import { CustomPathOverride } from "./CustomPathOverride";
-import type { CustomOverrideConfig } from "../types/index";
+import { ManualPatchControls } from "./CustomPathOverride";
 
 interface OptiScalerControlsProps {
   pathExists: boolean | null;
@@ -23,14 +22,6 @@ export function OptiScalerControls({ pathExists, setPathExists }: OptiScalerCont
   const [uninstalling, setUninstalling] = useState(false);
   const [installResult, setInstallResult] = useState<OperationResult | null>(null);
   const [uninstallResult, setUninstallResult] = useState<OperationResult | null>(null);
-  const [overrideConfig, setOverrideConfig] = useState<CustomOverrideConfig | null>(null);
-
-  useEffect(() => {
-    if (pathExists !== true && overrideConfig) {
-      setOverrideConfig(null);
-    }
-  }, [pathExists, overrideConfig]);
-
   useEffect(() => {
     if (installResult) {
       return createAutoCleanupTimer(() => setInstallResult(null), TIMEOUTS.resultDisplay);
@@ -85,11 +76,9 @@ export function OptiScalerControls({ pathExists, setPathExists }: OptiScalerCont
       
       <OptiScalerHeader pathExists={pathExists} />
       
-      {pathExists === true && (
-        <CustomPathOverride onOverrideChange={setOverrideConfig} />
-      )}
+      <ManualPatchControls isAvailable={pathExists === true} />
 
-      <ClipboardCommands pathExists={pathExists} overrideConfig={overrideConfig} />
+      <ClipboardCommands pathExists={pathExists} />
       
       <InstructionCard pathExists={pathExists} />
       
-- 
cgit v1.2.3

