From 01d46886d19f29029819d66ba1c9fb6b5f1b90d7 Mon Sep 17 00:00:00 2001 From: xXJSONDeruloXx Date: Mon, 27 Jan 2025 23:42:24 -0500 Subject: patch and unpatch ui refine --- src/index.tsx | 35 ++++++++++++++++++++--------------- 1 file changed, 20 insertions(+), 15 deletions(-) (limited to 'src/index.tsx') diff --git a/src/index.tsx b/src/index.tsx index c27c266..0021c4f 100755 --- a/src/index.tsx +++ b/src/index.tsx @@ -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'); // Remove mod files and launch game + await SteamClient.Apps.SetAppLaunchOptions(game.appid, ''); // Remove custom launch options setResult(`Launch options cleared for ${game.name}. The game is now unpatched.`); } catch (error) { if (error instanceof Error) { @@ -286,22 +286,27 @@ function InstalledGamesSection() { {games.map((game) => ( -
- handlePatchClick(game)} - > - Patch: {game.name} - - handleUnpatchClick(game)} - > - Unpatch: {game.name} - +
+ {/* Game Name as Bold Subheader */} +
{game.name}
+ {/* Buttons Stacked Vertically */} +
+ handlePatchClick(game)} + > + Patch + + handleUnpatchClick(game)} + > + Unpatch + +
{clickedGame?.appid === game.appid && ( -
+
{result}
)} -- cgit v1.2.3