diff options
| author | JSON Derulo <136133082+xXJSONDeruloXx@users.noreply.github.com> | 2025-01-28 12:12:49 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-01-28 12:12:49 -0500 |
| commit | ac809d88c455a96b00d2b0afae79b38da53bb32d (patch) | |
| tree | 947f0ef5e710a495c5909ba17f0eb281563e5629 /src | |
| parent | 709062d93cec154abed768a0dde1122bb4d79a6a (diff) | |
| parent | 9dfbe191da4e498e3dd7d00e29b9258779a652c4 (diff) | |
| download | Decky-Framegen-ac809d88c455a96b00d2b0afae79b38da53bb32d.tar.gz Decky-Framegen-ac809d88c455a96b00d2b0afae79b38da53bb32d.zip | |
Merge pull request #6 from DGdev91/non-steamdeck-support
Enhancements to make the plugin work on non-SteamOS 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) { |
