diff options
| author | xXJSONDeruloXx <danielhimebauch@gmail.com> | 2026-04-13 21:05:54 -0400 |
|---|---|---|
| committer | xXJSONDeruloXx <danielhimebauch@gmail.com> | 2026-04-13 21:05:54 -0400 |
| commit | 8ca30b2fafc0160cc951353db180f65ecd4d7952 (patch) | |
| tree | d64096da5f7f97aaefd2b519ca3ec878213a6e57 /src/components/ClipboardCommands.tsx | |
| parent | 47e7e2610b44809e13bea6bad7f1345fe6f58fa3 (diff) | |
| download | Decky-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.tsx | 20 |
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" + /> ); } |
