Skip to content

Commit

Permalink
metadata - Update cloud save data
Browse files Browse the repository at this point in the history
  • Loading branch information
d10sfan committed Nov 7, 2023
1 parent 02c64f8 commit c208979
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 12 deletions.
18 changes: 16 additions & 2 deletions metadata/packagessniper_v2.json
Original file line number Diff line number Diff line change
Expand Up @@ -1088,7 +1088,7 @@
]
}
],
"cloudAvailable": true,
"cloudNotAvailable": true,
"controllerSteamDefault": true,
"app_id": "2290"
},
Expand Down Expand Up @@ -3866,7 +3866,7 @@
"label": "Uses wadsmoosh (https://heptapod.host/jp-lebreton/wadsmoosh)"
}
],
"cloudAvailable": true,
"cloudNotAvailable": true,
"app_id": "9160"
},
{
Expand Down Expand Up @@ -6486,6 +6486,8 @@
"command": "./run-eduke32.sh",
"engine_name": "EDuke32",
"cloudAvailable": true,
"cloudIssue": true,
"cloudIssueReason": "unworkable_location",
"controllerSteamDefault": true,
"app_id": "562860"
},
Expand Down Expand Up @@ -6552,6 +6554,8 @@
"command": "./run-engge.sh",
"engine_name": "engge",
"cloudAvailable": true,
"cloudIssue": true,
"cloudIssueReason": "unworkable_location",
"controllerSteamDefault": true,
"app_id": "569860"
},
Expand Down Expand Up @@ -7102,6 +7106,8 @@
"engine_name": "Doom64EX-Plus",
"command": "./run-doom64ex-plus.sh",
"cloudAvailable": true,
"cloudIssue": true,
"cloudIssueReason": "unworkable_location",
"app_id": "1148590"
},
{
Expand Down Expand Up @@ -7150,6 +7156,8 @@
}
],
"cloudAvailable": true,
"cloudIssue": true,
"cloudIssueReason": "unworkable_location",
"app_id": "1213210"
},
{
Expand Down Expand Up @@ -7357,6 +7365,8 @@
"command": "./run-ocean-heart.sh",
"engine_name": "Solarus",
"cloudAvailable": true,
"cloudIssue": true,
"cloudIssueReason": "unworkable_location",
"controllerSteamDefault": true,
"app_id": "1393750"
},
Expand Down Expand Up @@ -9872,6 +9882,10 @@
{
"key": "steam_achivements",
"value": "Supports steam achivements."
},
{
"key": "unworkable_location",
"value": "Unworkable Location"
}
]
}
18 changes: 9 additions & 9 deletions webui/src/app/packages/packages.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -104,25 +104,25 @@
</mat-icon>

<mat-icon
*ngIf="title.cloudAvailable && !title.cloudSupported"
matTooltip="Game Has Cloud Saves But Unknown Status"
[style.color]="'darkgray'"
*ngIf="title.cloudAvailable && title.cloudIssue"
[matTooltip]="'Game Has Cloud Saves But Not Supported Due to ' + translate_key(title.cloudIssueReason)"
[style.color]="'red'"
>
cloud
</mat-icon>

<mat-icon
*ngIf="title.cloudAvailable && title.cloudSupported"
matTooltip="Cloud Saves Supported"
[style.color]="'green'"
*ngIf="title.cloudAvailable && !title.cloudSupported && !title.cloudIssue"
matTooltip="Game Has Cloud Saves But Unknown Status"
[style.color]="'darkgray'"
>
cloud
</mat-icon>

<mat-icon
*ngIf="title.cloudAvailable && title.cloudIssue"
matTooltip="Cloud Saves Not Supported"
[style.color]="'yellow'"
*ngIf="title.cloudAvailable && title.cloudSupported"
matTooltip="Cloud Saves Supported"
[style.color]="'green'"
>
cloud
</mat-icon>
Expand Down
6 changes: 5 additions & 1 deletion webui/src/app/packages/packages.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,15 @@ export class PackagesComponent implements OnInit {
this.titles.engines = finalEngines;
}

translate_key(key: string) {
return this.NOTICE_MAP[key];
}

processTitle(title: any) {
const titleId = title.app_id;
title.engines = {};

if(title.cloudAvailable && !title.cloudSupported && !title.cloudIssues) {
if(title.cloudAvailable && !title.cloudSupported && !title.cloudIssue) {
console.error(`title of ${title.game_name} has unknown cloud save feature state`);
}

Expand Down

0 comments on commit c208979

Please sign in to comment.