Skip to content

Commit

Permalink
Add powerwash simulator and change script to allow-non-source-tree fi…
Browse files Browse the repository at this point in the history
…les. (Whisky-App#33)
  • Loading branch information
JoshuaBrest authored May 12, 2024
1 parent 826e508 commit dac9036
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 11 deletions.
12 changes: 2 additions & 10 deletions scripts/generate.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -131,21 +131,13 @@ export const generateGameMetadata = async () => {
const embed = embedData && embedData.length > 0 ? embedData[0] : [];

// Look for last updated
const [lastUpdated, lastUpdatedError] = getLastUpdated(file);
if (lastUpdatedError) {
logging.error(
'Failed to get last updated in file %s: %s',
file,
lastUpdatedError
);
continue;
}
const [lastUpdated, _] = getLastUpdated(file);

links.push({
path: file,
game: {
title,
lastUpdated,
lastUpdated: lastUpdated ?? new Date(),
aliases,
rating: {
status: ratingParsed.status,
Expand Down
2 changes: 1 addition & 1 deletion scripts/utils.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ export const getLastUpdated = path => {

return [lastUpdated, null];
} catch (error) {
logging.warning(
logging.debug(
'Failed to get last updated for file %s: %o',
path,
error
Expand Down
1 change: 1 addition & 0 deletions src/SUMMARY.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@
- [Palworld](./game-support/palworld.md)
- [People Playground](./game-support/people-playground.md)
- [Phasmophobia](./game-support/phasmophobia.md)
- [PowerWash Simulator](./game-support/powerwash-simulator.md)
- [Prey \(2017\)](./game-support/prey-2017.md)
- [Quake II](./game-support/quake2.md)
- [r2modman](./game-support/r2modman.md)
Expand Down
6 changes: 6 additions & 0 deletions src/game-support/powerwash-simulator.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# PowerWash Simulator
<!-- script:Aliases [] -->

{{#template ../templates/rating.md status=Platinum installs=Yes opens=Yes}}

{{#template ../templates/steam.md id=1290000}}

0 comments on commit dac9036

Please sign in to comment.