From ce9c6dcd7ba42e4038aafe1cf1b7a37433ded5cf Mon Sep 17 00:00:00 2001 From: "NGnius (Graham)" Date: Thu, 8 Sep 2022 20:01:01 -0400 Subject: [PATCH] Use gameId, not appId, fixes #34 and actually follows my own advice --- backend/Cargo.lock | 2 +- backend/Cargo.toml | 2 +- package.json | 2 +- src/index.tsx | 3 ++- 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/backend/Cargo.lock b/backend/Cargo.lock index 2f30d12..ae33d44 100644 --- a/backend/Cargo.lock +++ b/backend/Cargo.lock @@ -567,7 +567,7 @@ dependencies = [ [[package]] name = "powertools-rs" -version = "1.0.0" +version = "1.0.1" dependencies = [ "log", "serde", diff --git a/backend/Cargo.toml b/backend/Cargo.toml index 5763c6f..28087a2 100644 --- a/backend/Cargo.toml +++ b/backend/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "powertools-rs" -version = "1.0.0" +version = "1.0.1" edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/package.json b/package.json index 9d5e609..5359023 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "PowerTools", - "version": "1.0.0", + "version": "1.0.1", "description": "Power tweaks for power users", "scripts": { "build": "shx rm -rf dist && rollup -c", diff --git a/src/index.tsx b/src/index.tsx index 70f7b55..91f9547 100755 --- a/src/index.tsx +++ b/src/index.tsx @@ -130,8 +130,9 @@ const reload = function() { startHook = SteamClient.Apps.RegisterForGameActionStart((actionType, id) => { //@ts-ignore let gameInfo: any = appStore.GetAppOverviewByGameID(id); + // don't use gameInfo.appid, haha backend.resolve( - backend.loadGeneralSettings(gameInfo.appid.toString() + ".json", gameInfo.display_name), + backend.loadGeneralSettings(id.toString() + ".json", gameInfo.display_name), (ok: boolean) => {console.debug("Loading settings ok? " + ok)} ); });