diff options
| author | DGdev91 <iperpido91@gmail.com> | 2025-01-28 12:51:05 +0100 |
|---|---|---|
| committer | DGdev91 <iperpido91@gmail.com> | 2025-01-28 12:51:05 +0100 |
| commit | 09541fca5470d23bd393cfc0b52f254043eea8b1 (patch) | |
| tree | 59870230a7c26f2300dbbe6f4ae32829903bbd64 /src | |
| parent | 709062d93cec154abed768a0dde1122bb4d79a6a (diff) | |
| download | Decky-Framegen-09541fca5470d23bd393cfc0b52f254043eea8b1.tar.gz Decky-Framegen-09541fca5470d23bd393cfc0b52f254043eea8b1.zip | |
Modifed every reference to "/home/deck" to a generic home folder, should allow to run it on non-steamos linux distros
Diffstat (limited to 'src')
| -rwxr-xr-x | src/index.tsx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/index.tsx b/src/index.tsx index 48dfc19..e444fbf 100755 --- a/src/index.tsx +++ b/src/index.tsx @@ -171,7 +171,7 @@ function FGModInstallerSection() { // if (mainRunningApp) { // try { // const currentOptions = await SteamClient.Apps.GetLaunchOptionsForApp(mainRunningApp.appid); -// setIsPatched(currentOptions.includes('/home/deck/fgmod/fgmod %COMMAND%')); +// setIsPatched(currentOptions.includes('~/fgmod/fgmod %COMMAND%')); // } catch (error) { // console.error('Error checking launch options:', error); // } @@ -191,7 +191,7 @@ function FGModInstallerSection() { // await SteamClient.Apps.SetAppLaunchOptions(mainRunningApp.appid, ''); // setResult(`Launch options cleared successfully. Restart the game to restore DLSS default files`); // } else { -// await SteamClient.Apps.SetAppLaunchOptions(mainRunningApp.appid, '/home/deck/fgmod/fgmod %COMMAND%'); +// await SteamClient.Apps.SetAppLaunchOptions(mainRunningApp.appid, '~/fgmod/fgmod %COMMAND%'); // setResult(`Launch options set successfully, restart the game to use FSR upscaling and frame gen via DLSS options.`); // } // setIsPatched(!isPatched); @@ -257,7 +257,7 @@ function InstalledGamesSection() { const handlePatchClick = async (game: { appid: number; name: string }) => { setClickedGame(game); try { - await SteamClient.Apps.SetAppLaunchOptions(game.appid, '/home/deck/fgmod/fgmod %COMMAND%'); + await SteamClient.Apps.SetAppLaunchOptions(game.appid, '~/fgmod/fgmod %COMMAND%'); setResult(`Launch options set successfully for ${game.name}. You can now select DLSS in the game's menu to use FSR Upscaling and FrameGen equivalents.`); } catch (error) { if (error instanceof Error) { @@ -271,7 +271,7 @@ function InstalledGamesSection() { const handleUnpatchClick = async (game: { appid: number; name: string }) => { setClickedGame(game); try { - await SteamClient.Apps.SetAppLaunchOptions(game.appid, '/home/deck/fgmod/fgmod-uninstaller.sh %COMMAND%'); + await SteamClient.Apps.SetAppLaunchOptions(game.appid, '~/fgmod/fgmod-uninstaller.sh %COMMAND%'); setResult(`DLSS mods will uninstall on next launch of ${game.name}. The game is now unpatched.`); } catch (error) { if (error instanceof Error) { |
