Use gameId, not appId, fixes #34 and actually follows my own advice
This commit is contained in:
parent
a82f4b6ff6
commit
ce9c6dcd7b
4 changed files with 5 additions and 4 deletions
2
backend/Cargo.lock
generated
2
backend/Cargo.lock
generated
|
@ -567,7 +567,7 @@ dependencies = [
|
|||
|
||||
[[package]]
|
||||
name = "powertools-rs"
|
||||
version = "1.0.0"
|
||||
version = "1.0.1"
|
||||
dependencies = [
|
||||
"log",
|
||||
"serde",
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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)}
|
||||
);
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue