From cbed25162a1058e67180aafb8fbd424bf2573e95 Mon Sep 17 00:00:00 2001
From: xXJSONDeruloXx <danielhimebauch@gmail.com>
Date: Fri, 26 Sep 2025 11:32:03 -0400
Subject: initial path override ui and be

---
 src/components/ClipboardCommands.tsx | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

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

diff --git a/src/components/ClipboardCommands.tsx b/src/components/ClipboardCommands.tsx
index 5a6f38f..f96b460 100644
--- a/src/components/ClipboardCommands.tsx
+++ b/src/components/ClipboardCommands.tsx
@@ -1,16 +1,22 @@
 import { SmartClipboardButton } from "./SmartClipboardButton";
+import type { CustomOverrideConfig } from "../types/index";
 
 interface ClipboardCommandsProps {
   pathExists: boolean | null;
+  overrideConfig?: CustomOverrideConfig | null;
 }
 
-export function ClipboardCommands({ pathExists }: ClipboardCommandsProps) {
+export function ClipboardCommands({ pathExists, overrideConfig }: ClipboardCommandsProps) {
   if (pathExists !== true) return null;
 
+  const patchCommand = overrideConfig
+    ? `${overrideConfig.envAssignment} ~/fgmod/fgmod %command%`
+    : "~/fgmod/fgmod %command%";
+
   return (
     <>
       <SmartClipboardButton 
-        command="~/fgmod/fgmod %command%"
+        command={patchCommand}
         buttonText="Copy Patch Command"
       />
       
-- 
cgit v1.2.3

