|
1 | | -const APP_VERSION = '2.3.2'; |
| 1 | +const APP_VERSION = '2.3.3'; |
2 | 2 | const CACHE_VERSION = 2; |
3 | 3 |
|
4 | 4 | let electron = require('electron'), |
@@ -1320,7 +1320,13 @@ function getMostPlayed(values) { |
1320 | 1320 | function getSuggested(most_played, cb) { |
1321 | 1321 | var genres = []; |
1322 | 1322 | for (var i=most_played.length-1;i>=0;i--) { |
1323 | | - genres.push(most_played[i].genres[Math.floor(Math.random() * most_played[i].genres.length)]); |
| 1323 | + let game_genres = most_played[i].genres; |
| 1324 | + if (game_genres.length >= 1) { |
| 1325 | + genres.push(most_played[i].genres[Math.floor(Math.random() * most_played[i].genres.length)]); |
| 1326 | + } |
| 1327 | + } |
| 1328 | + if (genres.length < 1) { |
| 1329 | + return cb(null, []); |
1324 | 1330 | } |
1325 | 1331 | request(API_ROOT + '/api/v2/GetSuggested/' + genres.join('|'), (error, response, body) => { |
1326 | 1332 | if (error || response.statusCode !== 200 || !body || body.error) return cb(true); |
@@ -2138,14 +2144,14 @@ function verifyCacheVersion(cb) { |
2138 | 2144 | } |
2139 | 2145 |
|
2140 | 2146 | function checkSystem(cb) { |
2141 | | - if (new RegExp('\\bIntel\\b').test(os.cpus()[0].model)) { |
| 2147 | + /*if (new RegExp('\\bIntel\\b').test(os.cpus()[0].model)) { |
2142 | 2148 | dialog.showMessageBox(ApplicationWindow, { |
2143 | 2149 | type: 'warning', |
2144 | 2150 | title: 'Warning', |
2145 | 2151 | message: 'Unsupported GPU', |
2146 | 2152 | detail: 'CemUI has detected an Intel GPU. Cemu does not currently support Intel GPUs. You will experience many bugs and glitches using Cemu' |
2147 | 2153 | }); |
2148 | | - } |
| 2154 | + }*/ |
2149 | 2155 | if (os.type() != 'Windows_NT') { |
2150 | 2156 | dialog.showMessageBox(ApplicationWindow, { |
2151 | 2157 | type: 'warning', |
|
0 commit comments