Skip to content

Commit

Permalink
Fixed bug
Browse files Browse the repository at this point in the history
  • Loading branch information
jonbarrow committed Nov 11, 2017
1 parent 18700b3 commit dca72e4
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ const CACHE_VERSION = 2;

let electron = require('electron'),
updater = require("electron-updater").autoUpdater,
electron_reload = require('electron-reload')(__dirname, {
/*electron_reload = require('electron-reload')(__dirname, {
ignored: /node_modules|[\/\\]\.|cemui.log|cemui.error.log|cemui.info.log/
}),
}),*/
NodeNUSRipper = require('./NodeNUSRipper.js'),
NUSRipper = new NodeNUSRipper(),
exec = require('child_process').exec,
Expand Down Expand Up @@ -1699,7 +1699,7 @@ function loadGames(dir, master_callback) {
icon: DATA_ROOT + 'cache/images/' + data.game_title_id + '/icon.ico',
grid: DATA_ROOT + 'cache/images/' + data.game_title_id + '/grid.webp',
screenshots: data.screenshots_list,
genres: data.game_genres.split('|'),
genres: [],
release_date: data.game_release_date,
publisher: data.game_publisher,
developer: data.game_developer,
Expand All @@ -1724,6 +1724,10 @@ function loadGames(dir, master_callback) {
}
}
}

if (data.game_genres) {
game_data.genres = data.game_genres.split('|')
}

game_storage.get('games').push(game_data).write();

Expand Down

0 comments on commit dca72e4

Please sign in to comment.