Skip to content

Commit

Permalink
fix: Prevent broken games loading from playlists
Browse files Browse the repository at this point in the history
chore: Bump to 12.2.0
  • Loading branch information
colin969 committed Oct 27, 2023
1 parent aba5c4f commit d8af621
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "flashpoint-launcher",
"version": "12.1.1",
"version": "12.2.0",
"description": "A desktop application used to browse, manage and play games from Flashpoint Archive",
"main": "build/main/index.js",
"config": {
Expand Down
2 changes: 2 additions & 0 deletions src/back/PlaylistFile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ export namespace PlaylistFile {
readJsonFile(filePath, 'utf8')
.then(json => {
const playlist = parse(json, onError);
// Remove any broken game entries
playlist.games = playlist.games.filter(game => !!game.gameId && game.gameId !== 'null'); // String of 'null' seems to have wormed in somehow in the past?
playlist.filePath = filePath;
resolve(playlist);
})
Expand Down

0 comments on commit d8af621

Please sign in to comment.