added game name cache to localstate

This commit is contained in:
2025-11-19 21:35:49 +01:00
parent 8eb8d0b1db
commit ff2cb2335c
2 changed files with 4 additions and 5 deletions

View File

@@ -35,10 +35,8 @@ func Run(config Config) {
log.Fatalf("Failed to load local state: %s", err)
}
gameNameCache := make(map[string]string)
for appid, files := range screenshotFiles {
gameName := getGameName(appid, gameNameCache)
gameName := getGameName(appid, localState.GameIDs)
assetsInGame := make([]string, 0)
for _, filepath := range files {