Permalink
Browse files

Fixed several issues

  • Loading branch information...
RedDuckss committed Nov 21, 2017
1 parent 73fdb5c commit f3b0f78bab70b01242ff5d408132c4740670900f
Showing with 18 additions and 8 deletions.
  1. +7 −3 NodeNUSRipper.js
  2. +10 −4 app.js
  3. +1 −1 package.json
View
@@ -127,9 +127,13 @@ Main.prototype.decrypt = function(location, cb) {
self.emit('rom_decryption_started', location);
fs.copySync(this._config.cdecrypt_location, path.join(location, 'cdecrypt.exe'));
fs.copySync(path.join(this._config.cdecrypt_folder_location, 'libeay32.dll'), path.join(location, 'libeay32.dll'));
fs.copySync(path.join(this._config.cdecrypt_folder_location, 'msvcr120d.dll'), path.join(location, 'msvcr120d.dll'));
if (fs.pathExistsSync(path.join(this._config.cdecrypt_folder_location, 'libeay32.dll'))) {
fs.copySync(path.join(this._config.cdecrypt_folder_location, 'libeay32.dll'), path.join(location, 'libeay32.dll'));
}
if (fs.pathExistsSync(path.join(this._config.cdecrypt_folder_location, 'msvcr120d.dll'))) {
fs.copySync(path.join(this._config.cdecrypt_folder_location, 'msvcr120d.dll'), path.join(location, 'msvcr120d.dll'));
}
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.');
let decrypter = child_process.spawn('cdecrypt.exe', [
View
14 app.js
@@ -1,4 +1,4 @@
const APP_VERSION = '2.3.2';
const APP_VERSION = '2.3.3';
const CACHE_VERSION = 2;
let electron = require('electron'),
@@ -1320,7 +1320,13 @@ function getMostPlayed(values) {
function getSuggested(most_played, cb) {
var genres = [];
for (var i=most_played.length-1;i>=0;i--) {
genres.push(most_played[i].genres[Math.floor(Math.random() * most_played[i].genres.length)]);
let game_genres = most_played[i].genres;
if (game_genres.length >= 1) {
genres.push(most_played[i].genres[Math.floor(Math.random() * most_played[i].genres.length)]);
}
}
if (genres.length < 1) {
return cb(null, []);
}
request(API_ROOT + '/api/v2/GetSuggested/' + genres.join('|'), (error, response, body) => {
if (error || response.statusCode !== 200 || !body || body.error) return cb(true);
@@ -2138,14 +2144,14 @@ function verifyCacheVersion(cb) {
}
function checkSystem(cb) {
if (new RegExp('\\bIntel\\b').test(os.cpus()[0].model)) {
/*if (new RegExp('\\bIntel\\b').test(os.cpus()[0].model)) {
dialog.showMessageBox(ApplicationWindow, {
type: 'warning',
title: 'Warning',
message: 'Unsupported GPU',
detail: 'CemUI has detected an Intel GPU. Cemu does not currently support Intel GPUs. You will experience many bugs and glitches using Cemu'
});
}
}*/
if (os.type() != 'Windows_NT') {
dialog.showMessageBox(ApplicationWindow, {
type: 'warning',
View
@@ -1,7 +1,7 @@
{
"name": "cemui",
"productName": "CemUI",
"version": "2.3.2",
"version": "2.3.3",
"description": "Front end launcher for the WiiU emulator, Cemu",
"author": "RedDucks",
"main": "app.js",

0 comments on commit f3b0f78

Please sign in to comment.