From d23e9b7fa1c3f31cfbfbd529cfed1f1aaaedd63d Mon Sep 17 00:00:00 2001 From: xXJSONDeruloXx Date: Sat, 31 Jan 2026 15:30:58 -0500 Subject: chore: cleanup and harden installer paths --- src/components/CustomPathOverride.tsx | 4 ++-- src/components/InstalledGamesSection.tsx | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'src/components') diff --git a/src/components/CustomPathOverride.tsx b/src/components/CustomPathOverride.tsx index ffc4b1f..3b1fb7e 100644 --- a/src/components/CustomPathOverride.tsx +++ b/src/components/CustomPathOverride.tsx @@ -158,7 +158,7 @@ export const ManualPatchControls = ({ isAvailable, onManualModeChange }: ManualP if (!selectedPath) return; const setBusy = action === "patch" ? setIsPatching : setIsUnpatching; - setLastOperation(action); + setLastOperation(action); setBusy(true); setOperationResult(null); @@ -300,4 +300,4 @@ export const ManualPatchControls = ({ isAvailable, onManualModeChange }: ManualP )} ); -}; \ No newline at end of file +}; diff --git a/src/components/InstalledGamesSection.tsx b/src/components/InstalledGamesSection.tsx index 71278d7..fb65e81 100644 --- a/src/components/InstalledGamesSection.tsx +++ b/src/components/InstalledGamesSection.tsx @@ -26,7 +26,7 @@ export function InstalledGamesSection() { .sort((a, b) => a.name.toLowerCase().localeCompare(b.name.toLowerCase())); setGames(sortedGames); } else if (response) { - logError('fetchGames: ' + JSON.stringify(response)); + void logError('fetchGames: ' + JSON.stringify(response)); console.error('fetchGames: ' + JSON.stringify(response)); } }; @@ -51,7 +51,7 @@ export function InstalledGamesSection() { await SteamClient.Apps.SetAppLaunchOptions(selectedGame.appid, '~/fgmod/fgmod %COMMAND%'); setResult(`✓ Frame generation enabled for ${selectedGame.name}. Launch the game, enable DLSS in graphics settings, then press Insert to access OptiScaler options.`); } catch (error) { - logError('handlePatchClick: ' + String(error)); + void logError('handlePatchClick: ' + String(error)); setResult(error instanceof Error ? `Error: ${error.message}` : 'Error enabling frame generation'); } }} @@ -66,7 +66,7 @@ export function InstalledGamesSection() { await SteamClient.Apps.SetAppLaunchOptions(selectedGame.appid, '~/fgmod/fgmod-uninstaller.sh %COMMAND%'); setResult(`✓ Frame generation will be disabled on next launch of ${selectedGame.name}.`); } catch (error) { - logError('handleUnpatchClick: ' + String(error)); + void logError('handleUnpatchClick: ' + String(error)); setResult(error instanceof Error ? `Error: ${error.message}` : 'Error disabling frame generation'); } }; -- cgit v1.2.3