blob: 124423efe716a1f4e6ce3fa0fe10f762b8e5f297 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
import { SmartClipboardButton } from "./SmartClipboardButton";
interface ClipboardCommandsProps {
pathExists: boolean | null;
dllName: string;
manualModeEnabled?: boolean;
showLaunchOptions?: boolean;
}
export function ClipboardCommands({
pathExists,
dllName,
manualModeEnabled = false,
showLaunchOptions = true,
}: ClipboardCommandsProps) {
if (pathExists !== true) return null;
const launchCmd =
dllName === "OptiScaler.asi"
? "SteamDeck=0 %command%"
: `WINEDLLOVERRIDES=${dllName.replace(".dll", "")}=n,b SteamDeck=0 %command%`;
return (
<>
{showLaunchOptions ? (
<SmartClipboardButton
command={launchCmd}
buttonText="Copy launch options"
/>
) : null}
{manualModeEnabled ? (
<>
<SmartClipboardButton
command="~/fgmod/fgmod %command%"
buttonText="Copy Patch Command"
/>
<SmartClipboardButton
command="~/fgmod/fgmod-uninstaller.sh %command%"
buttonText="Copy Unpatch Command"
/>
</>
) : null}
</>
);
}
|