mirror of
https://github.com/EmulatorJS/EmulatorJS.git
synced 2024-09-20 10:56:30 +00:00
Bump version
This commit is contained in:
parent
489dc69392
commit
5c23405726
3 changed files with 7 additions and 13 deletions
|
@ -169,11 +169,12 @@ class EmulatorJS {
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
constructor(element, config) {
|
constructor(element, config) {
|
||||||
this.ejs_version = "4.0.3";
|
this.ejs_version = "4.0.4";
|
||||||
this.ejs_num_version = 40.3;
|
this.ejs_num_version = 40.4;
|
||||||
this.debug = (window.EJS_DEBUG_XX === true);
|
this.debug = (window.EJS_DEBUG_XX === true);
|
||||||
if (this.debug || (window.location && ['localhost', '127.0.0.1'].includes(location.hostname))) this.checkForUpdates();
|
if (this.debug || (window.location && ['localhost', '127.0.0.1'].includes(location.hostname))) this.checkForUpdates();
|
||||||
this.netplay = false; //DO NOT ENABLE UNLESS YOU KNOW WHAT YOU'RE DOING
|
this.netplayEnabled = false; //DO NOT ENABLE UNLESS YOU KNOW WHAT YOU'RE DOING
|
||||||
|
if (!this.debug) this.netplayEnabled = false;
|
||||||
this.config = config;
|
this.config = config;
|
||||||
this.currentPopup = null;
|
this.currentPopup = null;
|
||||||
this.touch = false;
|
this.touch = false;
|
||||||
|
@ -986,7 +987,7 @@ class EmulatorJS {
|
||||||
this.elements.contextMenu.save.style.display = "none";
|
this.elements.contextMenu.save.style.display = "none";
|
||||||
this.elements.contextMenu.load.style.display = "none";
|
this.elements.contextMenu.load.style.display = "none";
|
||||||
}
|
}
|
||||||
if (typeof this.config.gameId !== "number" || !this.config.netplayUrl || this.netplay === false) {
|
if (typeof this.config.gameId !== "number" || !this.config.netplayUrl || this.netplayEnabled === false) {
|
||||||
this.elements.bottomBar.netplay[0].style.display = "none";
|
this.elements.bottomBar.netplay[0].style.display = "none";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,11 +2,6 @@ const UglifyJS = require("uglify-js");
|
||||||
const fs = require('fs');
|
const fs = require('fs');
|
||||||
const uglifycss = require('uglifycss');
|
const uglifycss = require('uglifycss');
|
||||||
|
|
||||||
if (!String.prototype.replaceAll) {
|
|
||||||
String.prototype.replaceAll = function(a, b) {
|
|
||||||
return this.split(a).join(b);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
let files = [
|
let files = [
|
||||||
'nipplejs.js',
|
'nipplejs.js',
|
||||||
'shaders.js',
|
'shaders.js',
|
||||||
|
@ -27,7 +22,5 @@ function minify(source){
|
||||||
}
|
}
|
||||||
console.log('minifying');
|
console.log('minifying');
|
||||||
fs.writeFileSync('../emulator.min.css', uglifycss.processString(fs.readFileSync('../emulator.css', 'utf8')));
|
fs.writeFileSync('../emulator.min.css', uglifycss.processString(fs.readFileSync('../emulator.css', 'utf8')));
|
||||||
const min = minify(code);
|
fs.writeFileSync('../emulator.min.js', minify(code));
|
||||||
console.log('done!');
|
console.log('done!');
|
||||||
|
|
||||||
fs.writeFileSync('../emulator.min.js', min);
|
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
{ "current_version": 40.3 }
|
{ "current_version": 40.4 }
|
||||||
|
|
Loading…
Reference in a new issue