Skip to content

Commit dac9036

Browse files
authored
Add powerwash simulator and change script to allow-non-source-tree files. (Whisky-App#33)
1 parent 826e508 commit dac9036

File tree

4 files changed

+10
-11
lines changed

4 files changed

+10
-11
lines changed

scripts/generate.mjs

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -131,21 +131,13 @@ export const generateGameMetadata = async () => {
131131
const embed = embedData && embedData.length > 0 ? embedData[0] : [];
132132

133133
// Look for last updated
134-
const [lastUpdated, lastUpdatedError] = getLastUpdated(file);
135-
if (lastUpdatedError) {
136-
logging.error(
137-
'Failed to get last updated in file %s: %s',
138-
file,
139-
lastUpdatedError
140-
);
141-
continue;
142-
}
134+
const [lastUpdated, _] = getLastUpdated(file);
143135

144136
links.push({
145137
path: file,
146138
game: {
147139
title,
148-
lastUpdated,
140+
lastUpdated: lastUpdated ?? new Date(),
149141
aliases,
150142
rating: {
151143
status: ratingParsed.status,

scripts/utils.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ export const getLastUpdated = path => {
149149

150150
return [lastUpdated, null];
151151
} catch (error) {
152-
logging.warning(
152+
logging.debug(
153153
'Failed to get last updated for file %s: %o',
154154
path,
155155
error

src/SUMMARY.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@
7676
- [Palworld](./game-support/palworld.md)
7777
- [People Playground](./game-support/people-playground.md)
7878
- [Phasmophobia](./game-support/phasmophobia.md)
79+
- [PowerWash Simulator](./game-support/powerwash-simulator.md)
7980
- [Prey \(2017\)](./game-support/prey-2017.md)
8081
- [Quake II](./game-support/quake2.md)
8182
- [r2modman](./game-support/r2modman.md)
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# PowerWash Simulator
2+
<!-- script:Aliases [] -->
3+
4+
{{#template ../templates/rating.md status=Platinum installs=Yes opens=Yes}}
5+
6+
{{#template ../templates/steam.md id=1290000}}

0 commit comments

Comments
 (0)