summaryrefslogtreecommitdiff
path: root/src/components/ClipboardCommands.tsx
diff options
context:
space:
mode:
authorxXJSONDeruloXx <danielhimebauch@gmail.com>2026-04-13 21:05:54 -0400
committerxXJSONDeruloXx <danielhimebauch@gmail.com>2026-04-13 21:05:54 -0400
commit8ca30b2fafc0160cc951353db180f65ecd4d7952 (patch)
treed64096da5f7f97aaefd2b519ca3ec878213a6e57 /src/components/ClipboardCommands.tsx
parent47e7e2610b44809e13bea6bad7f1345fe6f58fa3 (diff)
downloadDecky-Framegen-8ca30b2fafc0160cc951353db180f65ecd4d7952.tar.gz
Decky-Framegen-8ca30b2fafc0160cc951353db180f65ecd4d7952.zip
feat: appid-based patch/unpatch with multi-library discovery and marker tracking
Diffstat (limited to 'src/components/ClipboardCommands.tsx')
-rw-r--r--src/components/ClipboardCommands.tsx20
1 files changed, 9 insertions, 11 deletions
diff --git a/src/components/ClipboardCommands.tsx b/src/components/ClipboardCommands.tsx
index 7bbd12d..e1f6ef9 100644
--- a/src/components/ClipboardCommands.tsx
+++ b/src/components/ClipboardCommands.tsx
@@ -8,17 +8,15 @@ interface ClipboardCommandsProps {
export function ClipboardCommands({ pathExists, dllName }: ClipboardCommandsProps) {
if (pathExists !== true) return null;
- return (
- <>
- <SmartClipboardButton
- command={`DLL=${dllName} ~/fgmod/fgmod %command%`}
- buttonText="Copy Patch Command"
- />
+ const launchCmd =
+ dllName === "OptiScaler.asi"
+ ? "SteamDeck=0 %command%"
+ : `WINEDLLOVERRIDES=${dllName.replace(".dll", "")}=n,b SteamDeck=0 %command%`;
- <SmartClipboardButton
- command="~/fgmod/fgmod-uninstaller.sh %command%"
- buttonText="Copy Unpatch Command"
- />
- </>
+ return (
+ <SmartClipboardButton
+ command={launchCmd}
+ buttonText="Copy launch options"
+ />
);
}