summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/components/CustomPathOverride.tsx4
-rw-r--r--src/components/InstalledGamesSection.tsx6
-rw-r--r--src/utils/constants.ts13
-rw-r--r--src/utils/index.ts2
4 files changed, 6 insertions, 19 deletions
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');
}
};
diff --git a/src/utils/constants.ts b/src/utils/constants.ts
index 1f583c0..afc996e 100644
--- a/src/utils/constants.ts
+++ b/src/utils/constants.ts
@@ -1,16 +1,3 @@
-// Common types for the application
-
-export interface ResultType {
- status: string;
- message?: string;
- output?: string;
-}
-
-export interface GameType {
- appid: number;
- name: string;
-}
-
// Common style definitions
export const STYLES = {
resultBox: {
diff --git a/src/utils/index.ts b/src/utils/index.ts
index d969cb6..d90787c 100644
--- a/src/utils/index.ts
+++ b/src/utils/index.ts
@@ -23,7 +23,7 @@ export const safeAsyncOperation = async <T,>(
try {
return await operation();
} catch (e) {
- logError(`${errorContext}: ${String(e)}`);
+ void logError(`${errorContext}: ${String(e)}`);
console.error(e);
return undefined;
}