Use gameId, not appId, fixes #34 and actually follows my own advice

This commit is contained in:
NGnius (Graham) 2022-09-08 20:01:01 -04:00
parent a82f4b6ff6
commit ce9c6dcd7b
4 changed files with 5 additions and 4 deletions

2
backend/Cargo.lock generated
View file

@ -567,7 +567,7 @@ dependencies = [
[[package]] [[package]]
name = "powertools-rs" name = "powertools-rs"
version = "1.0.0" version = "1.0.1"
dependencies = [ dependencies = [
"log", "log",
"serde", "serde",

View file

@ -1,6 +1,6 @@
[package] [package]
name = "powertools-rs" name = "powertools-rs"
version = "1.0.0" version = "1.0.1"
edition = "2021" edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

View file

@ -1,6 +1,6 @@
{ {
"name": "PowerTools", "name": "PowerTools",
"version": "1.0.0", "version": "1.0.1",
"description": "Power tweaks for power users", "description": "Power tweaks for power users",
"scripts": { "scripts": {
"build": "shx rm -rf dist && rollup -c", "build": "shx rm -rf dist && rollup -c",

View file

@ -130,8 +130,9 @@ const reload = function() {
startHook = SteamClient.Apps.RegisterForGameActionStart((actionType, id) => { startHook = SteamClient.Apps.RegisterForGameActionStart((actionType, id) => {
//@ts-ignore //@ts-ignore
let gameInfo: any = appStore.GetAppOverviewByGameID(id); let gameInfo: any = appStore.GetAppOverviewByGameID(id);
// don't use gameInfo.appid, haha
backend.resolve( 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)} (ok: boolean) => {console.debug("Loading settings ok? " + ok)}
); );
}); });