Skip to content

Commit f3b0f78

Browse files
committed
Fixed several issues
1 parent 73fdb5c commit f3b0f78

3 files changed

Lines changed: 18 additions & 8 deletions

File tree

NodeNUSRipper.js

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -127,9 +127,13 @@ Main.prototype.decrypt = function(location, cb) {
127127
self.emit('rom_decryption_started', location);
128128

129129
fs.copySync(this._config.cdecrypt_location, path.join(location, 'cdecrypt.exe'));
130-
fs.copySync(path.join(this._config.cdecrypt_folder_location, 'libeay32.dll'), path.join(location, 'libeay32.dll'));
131-
fs.copySync(path.join(this._config.cdecrypt_folder_location, 'msvcr120d.dll'), path.join(location, 'msvcr120d.dll'));
132-
130+
if (fs.pathExistsSync(path.join(this._config.cdecrypt_folder_location, 'libeay32.dll'))) {
131+
fs.copySync(path.join(this._config.cdecrypt_folder_location, 'libeay32.dll'), path.join(location, 'libeay32.dll'));
132+
}
133+
if (fs.pathExistsSync(path.join(this._config.cdecrypt_folder_location, 'msvcr120d.dll'))) {
134+
fs.copySync(path.join(this._config.cdecrypt_folder_location, 'msvcr120d.dll'), path.join(location, 'msvcr120d.dll'));
135+
}
136+
133137
console.log('CemUI does not ship with any means to decrypt rom files.\nWhile we would love to do so, we cannot for legal reasons.\nIn order to decrypt the files, CemUI makes use of CDecrypt, which is also not shipped with CemUI due to legal reasons.\nPlease obtain a copy of CDecrypt and tell CemUI where to look for it.');
134138

135139
let decrypter = child_process.spawn('cdecrypt.exe', [

app.js

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const APP_VERSION = '2.3.2';
1+
const APP_VERSION = '2.3.3';
22
const CACHE_VERSION = 2;
33

44
let electron = require('electron'),
@@ -1320,7 +1320,13 @@ function getMostPlayed(values) {
13201320
function getSuggested(most_played, cb) {
13211321
var genres = [];
13221322
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, []);
13241330
}
13251331
request(API_ROOT + '/api/v2/GetSuggested/' + genres.join('|'), (error, response, body) => {
13261332
if (error || response.statusCode !== 200 || !body || body.error) return cb(true);
@@ -2138,14 +2144,14 @@ function verifyCacheVersion(cb) {
21382144
}
21392145

21402146
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)) {
21422148
dialog.showMessageBox(ApplicationWindow, {
21432149
type: 'warning',
21442150
title: 'Warning',
21452151
message: 'Unsupported GPU',
21462152
detail: 'CemUI has detected an Intel GPU. Cemu does not currently support Intel GPUs. You will experience many bugs and glitches using Cemu'
21472153
});
2148-
}
2154+
}*/
21492155
if (os.type() != 'Windows_NT') {
21502156
dialog.showMessageBox(ApplicationWindow, {
21512157
type: 'warning',

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "cemui",
33
"productName": "CemUI",
4-
"version": "2.3.2",
4+
"version": "2.3.3",
55
"description": "Front end launcher for the WiiU emulator, Cemu",
66
"author": "RedDucks",
77
"main": "app.js",

0 commit comments

Comments
 (0)