summaryrefslogtreecommitdiff
path: root/src/components/ClipboardCommands.tsx
diff options
context:
space:
mode:
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"
+ />
);
}