mirror of
https://github.com/EmulatorJS/EmulatorJS.git
synced 2024-09-19 18:36:25 +00:00
Version 1.1.5
This commit is contained in:
parent
4da87d0e6b
commit
81c9614e17
7 changed files with 200 additions and 148 deletions
128
CODE_OF_CONDUCT.md
Normal file
128
CODE_OF_CONDUCT.md
Normal file
|
@ -0,0 +1,128 @@
|
|||
# Contributor Covenant Code of Conduct
|
||||
|
||||
## Our Pledge
|
||||
|
||||
We as members, contributors, and leaders pledge to make participation in our
|
||||
community a harassment-free experience for everyone, regardless of age, body
|
||||
size, visible or invisible disability, ethnicity, sex characteristics, gender
|
||||
identity and expression, level of experience, education, socio-economic status,
|
||||
nationality, personal appearance, race, religion, or sexual identity
|
||||
and orientation.
|
||||
|
||||
We pledge to act and interact in ways that contribute to an open, welcoming,
|
||||
diverse, inclusive, and healthy community.
|
||||
|
||||
## Our Standards
|
||||
|
||||
Examples of behavior that contributes to a positive environment for our
|
||||
community include:
|
||||
|
||||
* Demonstrating empathy and kindness toward other people
|
||||
* Being respectful of differing opinions, viewpoints, and experiences
|
||||
* Giving and gracefully accepting constructive feedback
|
||||
* Accepting responsibility and apologizing to those affected by our mistakes,
|
||||
and learning from the experience
|
||||
* Focusing on what is best not just for us as individuals, but for the
|
||||
overall community
|
||||
|
||||
Examples of unacceptable behavior include:
|
||||
|
||||
* The use of sexualized language or imagery, and sexual attention or
|
||||
advances of any kind
|
||||
* Trolling, insulting or derogatory comments, and personal or political attacks
|
||||
* Public or private harassment
|
||||
* Publishing others' private information, such as a physical or email
|
||||
address, without their explicit permission
|
||||
* Other conduct which could reasonably be considered inappropriate in a
|
||||
professional setting
|
||||
|
||||
## Enforcement Responsibilities
|
||||
|
||||
Community leaders are responsible for clarifying and enforcing our standards of
|
||||
acceptable behavior and will take appropriate and fair corrective action in
|
||||
response to any behavior that they deem inappropriate, threatening, offensive,
|
||||
or harmful.
|
||||
|
||||
Community leaders have the right and responsibility to remove, edit, or reject
|
||||
comments, commits, code, wiki edits, issues, and other contributions that are
|
||||
not aligned to this Code of Conduct, and will communicate reasons for moderation
|
||||
decisions when appropriate.
|
||||
|
||||
## Scope
|
||||
|
||||
This Code of Conduct applies within all community spaces, and also applies when
|
||||
an individual is officially representing the community in public spaces.
|
||||
Examples of representing our community include using an official e-mail address,
|
||||
posting via an official social media account, or acting as an appointed
|
||||
representative at an online or offline event.
|
||||
|
||||
## Enforcement
|
||||
|
||||
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
||||
reported to the community leaders responsible for enforcement at
|
||||
ethan.a.obrien@gmail.com.
|
||||
All complaints will be reviewed and investigated promptly and fairly.
|
||||
|
||||
All community leaders are obligated to respect the privacy and security of the
|
||||
reporter of any incident.
|
||||
|
||||
## Enforcement Guidelines
|
||||
|
||||
Community leaders will follow these Community Impact Guidelines in determining
|
||||
the consequences for any action they deem in violation of this Code of Conduct:
|
||||
|
||||
### 1. Correction
|
||||
|
||||
**Community Impact**: Use of inappropriate language or other behavior deemed
|
||||
unprofessional or unwelcome in the community.
|
||||
|
||||
**Consequence**: A private, written warning from community leaders, providing
|
||||
clarity around the nature of the violation and an explanation of why the
|
||||
behavior was inappropriate. A public apology may be requested.
|
||||
|
||||
### 2. Warning
|
||||
|
||||
**Community Impact**: A violation through a single incident or series
|
||||
of actions.
|
||||
|
||||
**Consequence**: A warning with consequences for continued behavior. No
|
||||
interaction with the people involved, including unsolicited interaction with
|
||||
those enforcing the Code of Conduct, for a specified period of time. This
|
||||
includes avoiding interactions in community spaces as well as external channels
|
||||
like social media. Violating these terms may lead to a temporary or
|
||||
permanent ban.
|
||||
|
||||
### 3. Temporary Ban
|
||||
|
||||
**Community Impact**: A serious violation of community standards, including
|
||||
sustained inappropriate behavior.
|
||||
|
||||
**Consequence**: A temporary ban from any sort of interaction or public
|
||||
communication with the community for a specified period of time. No public or
|
||||
private interaction with the people involved, including unsolicited interaction
|
||||
with those enforcing the Code of Conduct, is allowed during this period.
|
||||
Violating these terms may lead to a permanent ban.
|
||||
|
||||
### 4. Permanent Ban
|
||||
|
||||
**Community Impact**: Demonstrating a pattern of violation of community
|
||||
standards, including sustained inappropriate behavior, harassment of an
|
||||
individual, or aggression toward or disparagement of classes of individuals.
|
||||
|
||||
**Consequence**: A permanent ban from any sort of public interaction within
|
||||
the community.
|
||||
|
||||
## Attribution
|
||||
|
||||
This Code of Conduct is adapted from the [Contributor Covenant][homepage],
|
||||
version 2.0, available at
|
||||
https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
|
||||
|
||||
Community Impact Guidelines were inspired by [Mozilla's code of conduct
|
||||
enforcement ladder](https://github.com/mozilla/diversity).
|
||||
|
||||
[homepage]: https://www.contributor-covenant.org
|
||||
|
||||
For answers to common questions about this code of conduct, see the FAQ at
|
||||
https://www.contributor-covenant.org/faq. Translations are available at
|
||||
https://www.contributor-covenant.org/translations.
|
|
@ -32,12 +32,6 @@ Self-hosted **Javascript** emulation for various system.
|
|||
|
||||
<br>
|
||||
|
||||
### Audio
|
||||
|
||||
*The **Screen Recording** option currently doesn't support **Audio** .*
|
||||
|
||||
<br>
|
||||
|
||||
### Extensions
|
||||
|
||||
**[GameLibrary]**
|
||||
|
|
193
data/emu-main.js
193
data/emu-main.js
|
@ -98,6 +98,7 @@ window.EJS_main = function(_0xa88a13, _0x17edbf, _0x2c1832) {
|
|||
'tabFocus': 'ejs__tab-focus'
|
||||
}
|
||||
},
|
||||
renderErrorPage = _0x2c1832(0),
|
||||
_0x5127f4 = _0x2c1832(0x9d),
|
||||
_0x48e5ff = _0x2c1832.n(_0x5127f4),
|
||||
_0x406e79 = function(_0x2aa74f) {
|
||||
|
@ -1636,7 +1637,7 @@ window.EJS_main = function(_0xa88a13, _0x17edbf, _0x2c1832) {
|
|||
});
|
||||
_0x3512e9(_0x139f1c, _0x17edbf);
|
||||
}).catch(function(_0x2e4d62) {
|
||||
void 0 === _0x2e4d62.response ? _0x2c1832.innerHTML = '<strong style="color:#f00;text-shadow: 0px 0px 3px;"><a target="_blank" href="https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS/Errors">'+_0xa88a13.localization('CORS Error')+'</a></strong>' : _0x2c1832.innerHTML = '<strong style="color:#f00;text-shadow: 0px 0px 3px;">'+_0xa88a13.localization('Network Error')+'</strong>';
|
||||
renderErrorPage(_0x2e4d62, _0x2c1832, _0xa88a13);
|
||||
});
|
||||
};
|
||||
_0x1ffb98.db ? _0x1ffb98.get(_0x107e8a, function(_0x5afc4a) {
|
||||
|
@ -1660,7 +1661,7 @@ window.EJS_main = function(_0xa88a13, _0x17edbf, _0x2c1832) {
|
|||
else _0x43a689();
|
||||
}) : _0x43a689();
|
||||
}).catch(function(_0x5ec6be) {
|
||||
void 0 === _0x5ec6be.response ? _0x2c1832.innerHTML = '<strong style="color:#f00;text-shadow: 0px 0px 3px;"><a target="_blank" href="https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS/Errors">'+_0xa88a13.localization('CORS Error')+'</a></strong>' : _0x2c1832.innerHTML = '<strong style="color:#f00;text-shadow: 0px 0px 3px;">'+_0xa88a13.localization('Network Error')+'</strong>';
|
||||
renderErrorPage(_0x5ec6be, _0x2c1832, _0xa88a13);
|
||||
});
|
||||
},
|
||||
_0x139f68 = function() {
|
||||
|
@ -1710,7 +1711,7 @@ window.EJS_main = function(_0xa88a13, _0x17edbf, _0x2c1832) {
|
|||
}), _0x4c332a = true), _0x4c332a || (_0x468801 += _0x1097ca.length, _0x4d7024.gamePatch = '/' .concat(_0xe531f0), _0x4d7024._FS.createDataFile('/', _0xe531f0, _0x1097ca, true, !0x1), _0x5048db());
|
||||
}(_0x179b43, _0x39a81f);
|
||||
}).catch(function(_0x314293) {
|
||||
void 0 === _0x314293.response ? _0x2c1832.innerHTML = '<strong style="color:#f00;text-shadow: 0px 0px 3px;"><a target="_blank" href="https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS/Errors">'+_0xa88a13.localization('CORS Error')+'</a></strong>' : _0x2c1832.innerHTML = '<strong style="color:#f00;text-shadow: 0px 0px 3px;">'+_0xa88a13.localization('Network Error')+'</strong>';
|
||||
renderErrorPage(_0x314293, _0x2c1832, _0xa88a13);
|
||||
});
|
||||
} else _0x5048db();
|
||||
},
|
||||
|
@ -1775,7 +1776,7 @@ window.EJS_main = function(_0xa88a13, _0x17edbf, _0x2c1832) {
|
|||
console.log(_0x125736);
|
||||
}
|
||||
}).catch(function(_0x516cc3) {
|
||||
void 0 === _0x516cc3.response ? _0x2c1832.innerHTML = '<strong style="color:#f00;text-shadow: 0px 0px 3px;"><a target="_blank" href="https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS/Errors">'+_0xa88a13.localization('CORS Error')+'</a></strong>' : _0x2c1832.innerHTML = '<strong style="color:#f00;text-shadow: 0px 0px 3px;">'+_0xa88a13.localization('Network Error')+'</strong>';
|
||||
renderErrorPage(_0x516cc3, _0x2c1832, _0xa88a13);
|
||||
});
|
||||
};
|
||||
_0x1ffb98.db ? _0x1ffb98.get(_0x316472, function(_0x3e612b) {
|
||||
|
@ -1795,7 +1796,7 @@ window.EJS_main = function(_0xa88a13, _0x17edbf, _0x2c1832) {
|
|||
else _0x31f098();
|
||||
}) : _0x31f098();
|
||||
}).catch(function(_0x20f2e3) {
|
||||
void 0 === _0x20f2e3.response ? _0x2c1832.innerHTML = '<strong style="color:#f00;text-shadow: 0px 0px 3px;"><a target="_blank" href="https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS/Errors">'+_0xa88a13.localization('CORS Error')+'</a></strong>' : _0x2c1832.innerHTML = '<strong style="color:#f00;text-shadow: 0px 0px 3px;">'+_0xa88a13.localization('Network Error')+'</strong>';
|
||||
renderErrorPage(_0x20f2e3, _0x2c1832, _0xa88a13);
|
||||
});
|
||||
} else _0x139f68();
|
||||
},
|
||||
|
@ -1904,14 +1905,14 @@ window.EJS_main = function(_0xa88a13, _0x17edbf, _0x2c1832) {
|
|||
'data': _0x17edbf
|
||||
}), _0x57d85d(_0x103241, _0x17edbf);
|
||||
}).catch(function(_0x58e374) {
|
||||
void 0 === _0x58e374.response ? _0x1f8424.innerHTML = '<strong style="color:#f00;text-shadow: 0px 0px 3px;"><a target="_blank" href="https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS/Errors">'+_0xa88a13.localization('CORS Error')+'</a></strong>' : _0x1f8424.innerHTML = '<strong style="color:#f00;text-shadow: 0px 0px 3px;">'+_0xa88a13.localization('Network Error')+'</strong>';
|
||||
renderErrorPage(_0x58e374, _0x1f8424, _0xa88a13);
|
||||
});
|
||||
};
|
||||
_0xa884ea.db ? _0xa884ea.get(_0x51bfef, function(_0x5cac21) {
|
||||
_0x5cac21 && _0x5cac21.filename === _0x103241 && _0x5cac21.filesize - _0x8e30bf == 0x0 && _0x5cac21.filetype === _0x14309b ? _0x57d85d(_0x5cac21.filename, _0x5cac21.data) : _0x574747();
|
||||
}) : _0x574747();
|
||||
}).catch(function(_0x4f39c1) {
|
||||
void 0 === _0x4f39c1.response ? _0x1f8424.innerHTML = '<strong style="color:#f00;text-shadow: 0px 0px 3px;"><a target="_blank" href="https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS/Errors">'+_0xa88a13.localization('CORS Error')+'</a></strong>' : _0x1f8424.innerHTML = '<strong style="color:#f00;text-shadow: 0px 0px 3px;">'+_0xa88a13.localization('Network Error')+'</strong>';
|
||||
renderErrorPage(_0x4f39c1, _0x1f8424, _0xa88a13);
|
||||
});
|
||||
} else _0x452592();
|
||||
},
|
||||
|
@ -2043,7 +2044,7 @@ window.EJS_main = function(_0xa88a13, _0x17edbf, _0x2c1832) {
|
|||
}
|
||||
|
||||
}).catch(function(_0x2e06c8) {
|
||||
void 0 === _0x2e06c8.response ? _0x3787ba.innerHTML = '<strong style="color:#f00;text-shadow: 0px 0px 3px;"><a target="_blank" href="https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS/Errors">'+_0xc6823.localization('CORS Error')+'</a></strong>' : _0x3787ba.innerHTML = '<strong style="color:#f00;text-shadow: 0px 0px 3px;">'+_0xc6823.localization('Network Error')+'</strong>';
|
||||
renderErrorPage(_0x2e06c8, _0x3787ba, _0xc6823);
|
||||
});
|
||||
};
|
||||
_0x550f17.a.get(_0xa88a13, {}).then(function(_0x578a2b) {
|
||||
|
@ -2152,7 +2153,7 @@ window.EJS_main = function(_0xa88a13, _0x17edbf, _0x2c1832) {
|
|||
_0x254bc2 || _0x1e2c68.element(_0x2c1832.elements.buttons.netplay) && _0x132da7(_0x2c1832.elements.buttons.netplay, true), _0x1e2c68.element(_0x2c1832.elements.buttons.saveState) && _0x132da7(_0x2c1832.elements.buttons.saveState, !_0x5b1dcd), _0x1e2c68.element(_0x2c1832.elements.buttons.loadState) && _0x132da7(_0x2c1832.elements.buttons.loadState, !_0x5b1dcd), _0x132da7(_0x2593da.contextMenu.querySelectorAll('ul li').item(0x2), !_0x5b1dcd), _0x132da7(_0x2593da.contextMenu.querySelectorAll('ul li').item(0x3), !_0x5b1dcd);
|
||||
_0xc6823.setStatesSupported(_0x5b1dcd);
|
||||
}).catch(function(_0x2d06a9) {
|
||||
void 0 === _0x2d06a9.response ? _0x3787ba.innerHTML = '<strong style="color:#f00;text-shadow: 0px 0px 3px;"><a target="_blank" href="https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS/Errors">'+_0xc6823.localization('CORS Error')+'</a></strong>' : _0x3787ba.innerHTML = '<strong style="color:#f00;text-shadow: 0px 0px 3px;">'+_0xc6823.localization('Network Error')+'</strong>';
|
||||
renderErrorPage(_0x2d06a9, _0x3787ba, _0xc6823);
|
||||
}), clearInterval(_0x1c9c57), _0x4d7024.romdb = _0x4e171c;
|
||||
}
|
||||
}, 0x1f4);
|
||||
|
@ -3827,30 +3828,12 @@ window.EJS_main = function(_0xa88a13, _0x17edbf, _0x2c1832) {
|
|||
inputLocation = _0x2593da.getCoreOptionsValues()['joystick-input'];
|
||||
}
|
||||
if (inputLocation === 'd-pad') {
|
||||
return {
|
||||
downVal: 1,
|
||||
4: 4,
|
||||
5: 5,
|
||||
6: 6,
|
||||
7: 7
|
||||
}
|
||||
return {downVal:1,4:4,5:5,6:6,7:7};
|
||||
} else {
|
||||
return {
|
||||
downVal: 0x7fff,
|
||||
4: 19,
|
||||
5: 18,
|
||||
6: 17,
|
||||
7: 16
|
||||
}
|
||||
return {downVal:0x7fff,4:19,5:18,6:17,7:16};
|
||||
}
|
||||
} else {
|
||||
return {
|
||||
downVal: 1,
|
||||
4: 4,
|
||||
5: 5,
|
||||
6: 6,
|
||||
7: 7
|
||||
}
|
||||
return {downVal:1,4:4,5:5,6:6,7:7};
|
||||
}
|
||||
}
|
||||
_0x17edbf.on('end', function(_0x27f006, _0x1fb527) {
|
||||
|
@ -3885,92 +3868,28 @@ window.EJS_main = function(_0xa88a13, _0x17edbf, _0x2c1832) {
|
|||
_0x2ae626.stopPropagation();
|
||||
});
|
||||
}
|
||||
_0x1093f4.call(this, _0x530042.call(this, '.' .concat(_0x2c1832, ' .').concat(_0x449eac({
|
||||
'b_a': true
|
||||
}))), 'touchstart touchend mousedown mouseup mouseout', function(_0x185083) {
|
||||
['touchend', 'mouseup', 'mouseout'].includes(_0x185083.type) ? (_0x3a8e2f(_0x185083.target, _0x2ec721, !0x1), window.setTimeout(function() {
|
||||
_0x378b5c.syncInput(0x0, 0x8, 0x0);
|
||||
}, 0x1e)) : (_0x3a8e2f(_0x185083.target, _0x2ec721, true), _0x378b5c.syncInput(0x0, 0x8, 0x1)), _0x185083.stopPropagation();
|
||||
[
|
||||
{id: {"b_a":true},number: 8},
|
||||
{id: {"b_b":true},number: 0},
|
||||
{id: {"b_x":true},number: 9},
|
||||
{id: {"b_y":true},number: 1},
|
||||
{id: {"b_l":true},number: 10},
|
||||
{id: {"b_z":true},number: 12},
|
||||
{id: {"b_r":true},number: 11},
|
||||
{id: {"b_start":true},number: 3},
|
||||
{id: {"b_select":true},number: 2},
|
||||
{id: {"b_cu":true},number: 23},
|
||||
{id: {"b_cd":true},number: 22},
|
||||
{id: {"b_cl":true},number: 21},
|
||||
{id: {"b_cr":true},number: 20}
|
||||
].forEach((a) => {
|
||||
_0x1093f4.call(this, _0x530042.call(this, '.'.concat(_0x2c1832, ' .').concat(_0x449eac(a.id))),
|
||||
'touchstart touchend mousedown mouseup mouseout', function(e) {
|
||||
['touchend', 'mouseup', 'mouseout'].includes(e.type) ? (_0x3a8e2f(e.target, _0x2ec721, false), window.setTimeout(function() {
|
||||
_0x378b5c.syncInput(0, a.number, 0);
|
||||
}, 30)) : (_0x3a8e2f(e.target, _0x2ec721, true), _0x378b5c.syncInput(0, a.number, 1)), e.stopPropagation();
|
||||
})
|
||||
});
|
||||
_0x1093f4.call(this, _0x530042.call(this, '.' .concat(_0x2c1832, ' .').concat(_0x449eac({
|
||||
'b_b': true
|
||||
}))), 'touchstart touchend mousedown mouseup mouseout', function(_0x213c3d) {
|
||||
['touchend', 'mouseup', 'mouseout'].includes(_0x213c3d.type) ? (_0x3a8e2f(_0x213c3d.target, _0x2ec721, !0x1), window.setTimeout(function() {
|
||||
_0x378b5c.syncInput(0x0, 0x0, 0x0);
|
||||
}, 0x1e)) : (_0x3a8e2f(_0x213c3d.target, _0x2ec721, true), _0x378b5c.syncInput(0x0, 0x0, 0x1)), _0x213c3d.stopPropagation();
|
||||
});
|
||||
_0x1093f4.call(this, _0x530042.call(this, '.' .concat(_0x2c1832, ' .').concat(_0x449eac({
|
||||
'b_x': true
|
||||
}))), 'touchstart touchend mousedown mouseup mouseout', function(_0x5ce708) {
|
||||
['touchend', 'mouseup', 'mouseout'].includes(_0x5ce708.type) ? (_0x3a8e2f(_0x5ce708.target, _0x2ec721, !0x1), window.setTimeout(function() {
|
||||
_0x378b5c.syncInput(0x0, 0x9, 0x0);
|
||||
}, 0x1e)) : (_0x3a8e2f(_0x5ce708.target, _0x2ec721, true), _0x378b5c.syncInput(0x0, 0x9, 0x1)), _0x5ce708.stopPropagation();
|
||||
});
|
||||
_0x1093f4.call(this, _0x530042.call(this, '.' .concat(_0x2c1832, ' .').concat(_0x449eac({
|
||||
'b_y': true
|
||||
}))), 'touchstart touchend mousedown mouseup mouseout', function(_0x1cfae6) {
|
||||
['touchend', 'mouseup', 'mouseout'].includes(_0x1cfae6.type) ? (_0x3a8e2f(_0x1cfae6.target, _0x2ec721, !0x1), window.setTimeout(function() {
|
||||
_0x378b5c.syncInput(0x0, 0x1, 0x0);
|
||||
}, 0x1e)) : (_0x3a8e2f(_0x1cfae6.target, _0x2ec721, true), _0x378b5c.syncInput(0x0, 0x1, 0x1)), _0x1cfae6.stopPropagation();
|
||||
});
|
||||
_0x1093f4.call(this, _0x530042.call(this, '.' .concat(_0x2c1832, ' .').concat(_0x449eac({
|
||||
'b_l': true
|
||||
}))), 'touchstart touchend mousedown mouseup mouseout', function(_0x1a50ab) {
|
||||
['touchend', 'mouseup', 'mouseout'].includes(_0x1a50ab.type) ? (_0x3a8e2f(_0x1a50ab.target, _0x2ec721, !0x1), window.setTimeout(function() {
|
||||
_0x378b5c.syncInput(0x0, 0xa, 0x0);
|
||||
}, 0x1e)) : (_0x3a8e2f(_0x1a50ab.target, _0x2ec721, true), _0x378b5c.syncInput(0x0, 0xa, 0x1)), _0x1a50ab.stopPropagation();
|
||||
});
|
||||
_0x1093f4.call(this, _0x530042.call(this, '.' .concat(_0x2c1832, ' .').concat(_0x449eac({
|
||||
'b_z': true
|
||||
}))), 'touchstart touchend mousedown mouseup mouseout', function(_0x1a50ab) {
|
||||
['touchend', 'mouseup', 'mouseout'].includes(_0x1a50ab.type) ? (_0x3a8e2f(_0x1a50ab.target, _0x2ec721, !0x1), window.setTimeout(function() {
|
||||
_0x378b5c.syncInput(0x0, 12, 0x0);
|
||||
}, 0x1e)) : (_0x3a8e2f(_0x1a50ab.target, _0x2ec721, true), _0x378b5c.syncInput(0x0, 12, 0x1)), _0x1a50ab.stopPropagation();
|
||||
});
|
||||
_0x1093f4.call(this, _0x530042.call(this, '.' .concat(_0x2c1832, ' .').concat(_0x449eac({
|
||||
'b_r': true
|
||||
}))), 'touchstart touchend mousedown mouseup mouseout', function(_0x3b8139) {
|
||||
['touchend', 'mouseup', 'mouseout'].includes(_0x3b8139.type) ? (_0x3a8e2f(_0x3b8139.target, _0x2ec721, !0x1), window.setTimeout(function() {
|
||||
_0x378b5c.syncInput(0x0, 0xb, 0x0);
|
||||
}, 0x1e)) : (_0x3a8e2f(_0x3b8139.target, _0x2ec721, true), _0x378b5c.syncInput(0x0, 0xb, 0x1)), _0x3b8139.stopPropagation();
|
||||
});
|
||||
_0x1093f4.call(this, _0x530042.call(this, '.' .concat(_0x2c1832, ' .').concat(_0x449eac({
|
||||
'b_start': true
|
||||
}))), 'touchstart touchend mousedown mouseup mouseout', function(_0x47af91) {
|
||||
['touchend', 'mouseup', 'mouseout'].includes(_0x47af91.type) ? (_0x3a8e2f(_0x47af91.target, _0x2ec721, !0x1), window.setTimeout(function() {
|
||||
_0x378b5c.syncInput(0x0, 0x3, 0x0);
|
||||
}, 0x1e)) : (_0x3a8e2f(_0x47af91.target, _0x2ec721, true), _0x378b5c.syncInput(0x0, 0x3, 0x1)), _0x47af91.stopPropagation();
|
||||
});
|
||||
|
||||
_0x1093f4.call(this, _0x530042.call(this, '.' .concat(_0x2c1832, ' .').concat(_0x449eac({
|
||||
'b_cu': true
|
||||
}))), 'touchstart touchend mousedown mouseup mouseout', function(_0x47af91) {
|
||||
['touchend', 'mouseup', 'mouseout'].includes(_0x47af91.type) ? (_0x3a8e2f(_0x47af91.target, _0x2ec721, !0x1), window.setTimeout(function() {
|
||||
_0x378b5c.syncInput(0, 23, 0);
|
||||
}, 0x1e)) : (_0x3a8e2f(_0x47af91.target, _0x2ec721, true), _0x378b5c.syncInput(0, 23, 0x7fff)), _0x47af91.stopPropagation();
|
||||
});
|
||||
_0x1093f4.call(this, _0x530042.call(this, '.' .concat(_0x2c1832, ' .').concat(_0x449eac({
|
||||
'b_cd': true
|
||||
}))), 'touchstart touchend mousedown mouseup mouseout', function(_0x47af91) {
|
||||
['touchend', 'mouseup', 'mouseout'].includes(_0x47af91.type) ? (_0x3a8e2f(_0x47af91.target, _0x2ec721, !0x1), window.setTimeout(function() {
|
||||
_0x378b5c.syncInput(0, 22, 0);
|
||||
}, 0x1e)) : (_0x3a8e2f(_0x47af91.target, _0x2ec721, true), _0x378b5c.syncInput(0, 22, 0x7fff)), _0x47af91.stopPropagation();
|
||||
});
|
||||
_0x1093f4.call(this, _0x530042.call(this, '.' .concat(_0x2c1832, ' .').concat(_0x449eac({
|
||||
'b_cl': true
|
||||
}))), 'touchstart touchend mousedown mouseup mouseout', function(_0x47af91) {
|
||||
['touchend', 'mouseup', 'mouseout'].includes(_0x47af91.type) ? (_0x3a8e2f(_0x47af91.target, _0x2ec721, !0x1), window.setTimeout(function() {
|
||||
_0x378b5c.syncInput(0, 21, 0);
|
||||
}, 0x1e)) : (_0x3a8e2f(_0x47af91.target, _0x2ec721, true), _0x378b5c.syncInput(0, 21, 0x7fff)), _0x47af91.stopPropagation();
|
||||
});
|
||||
_0x1093f4.call(this, _0x530042.call(this, '.' .concat(_0x2c1832, ' .').concat(_0x449eac({
|
||||
'b_cr': true
|
||||
}))), 'touchstart touchend mousedown mouseup mouseout', function(_0x47af91) {
|
||||
['touchend', 'mouseup', 'mouseout'].includes(_0x47af91.type) ? (_0x3a8e2f(_0x47af91.target, _0x2ec721, !0x1), window.setTimeout(function() {
|
||||
_0x378b5c.syncInput(0, 20, 0);
|
||||
}, 0x1e)) : (_0x3a8e2f(_0x47af91.target, _0x2ec721, true), _0x378b5c.syncInput(0, 20, 0x7fff)), _0x47af91.stopPropagation();
|
||||
});
|
||||
|
||||
var hideTimeout;
|
||||
_0x1093f4.call(this, _0x530042.call(this, '.' .concat(_0x2c1832, ' .').concat(_0x449eac({
|
||||
'b_c': true
|
||||
|
@ -3986,13 +3905,6 @@ window.EJS_main = function(_0xa88a13, _0x17edbf, _0x2c1832) {
|
|||
}, 5000)
|
||||
}
|
||||
});
|
||||
_0x1093f4.call(this, _0x530042.call(this, '.' .concat(_0x2c1832, ' .').concat(_0x449eac({
|
||||
'b_select': true
|
||||
}))), 'touchstart touchend mousedown mouseup mouseout', function(_0x37f594) {
|
||||
['touchend', 'mouseup', 'mouseout'].includes(_0x37f594.type) ? (_0x3a8e2f(_0x37f594.target, _0x2ec721, !0x1), window.setTimeout(function() {
|
||||
_0x378b5c.syncInput(0x0, 0x2, 0x0);
|
||||
}, 0x1e)) : (_0x3a8e2f(_0x37f594.target, _0x2ec721, true), _0x378b5c.syncInput(0x0, 0x2, 0x1)), _0x37f594.stopPropagation();
|
||||
});
|
||||
} else _0x132da7(_0x378b5c.virtualGamepadContainer, !_0x1ed80b);
|
||||
},
|
||||
'setup': function() {
|
||||
|
@ -4070,7 +3982,7 @@ window.EJS_main = function(_0xa88a13, _0x17edbf, _0x2c1832) {
|
|||
}
|
||||
if (! _0xa88a13.recordData.started) { //start recording
|
||||
if (MediaRecorder.isTypeSupported('video/webm; codecs=h264')) {
|
||||
var options = {mimeType: 'video/webm; codecs=h264'}; // video/webm; codecs=h264,opus
|
||||
var options = {mimeType: 'video/webm; codecs=h264'};
|
||||
} else if (MediaRecorder.isTypeSupported('video/webm; codecs=H264')) {
|
||||
var options = {mimeType: 'video/webm; codecs=H264'};
|
||||
} else if (MediaRecorder.isTypeSupported('video/webm; codecs=vp9')) {
|
||||
|
@ -4087,7 +3999,9 @@ window.EJS_main = function(_0xa88a13, _0x17edbf, _0x2c1832) {
|
|||
var options = {};
|
||||
}
|
||||
function gotStreams(stream) {
|
||||
_0xa88a13.elements.buttons.screenRecord.getElementsByClassName('ejs--74c6d4176d27e37a19d2e9e61de8f4')[0].innerHTML = _0xa88a13.localization('Stop Screen Recording');
|
||||
_0xa88a13.elements.buttons.screenRecord.querySelector('.'.concat(_0x449eac({
|
||||
'ejs__tooltip': true
|
||||
}))).innerHTML = _0xa88a13.localization('Stop Screen Recording');
|
||||
_0xa88a13.recordData.stream = stream;
|
||||
_0xa88a13.recordData.recorder = new MediaRecorder(_0xa88a13.recordData.stream, options);
|
||||
_0xa88a13.recordData.recorder.ondataavailable = function(e) {
|
||||
|
@ -4104,7 +4018,9 @@ window.EJS_main = function(_0xa88a13, _0x17edbf, _0x2c1832) {
|
|||
a.click()
|
||||
window.URL.revokeObjectURL(a.href)
|
||||
delete _0xa88a13.recordData
|
||||
_0xa88a13.elements.buttons.screenRecord.getElementsByClassName('ejs--74c6d4176d27e37a19d2e9e61de8f4')[0].innerHTML = _0xa88a13.localization('Start Screen Recording');
|
||||
_0xa88a13.elements.buttons.screenRecord.querySelector('.'.concat(_0x449eac({
|
||||
'ejs__tooltip': true
|
||||
}))).innerHTML = _0xa88a13.localization('Start Screen Recording');
|
||||
}
|
||||
}
|
||||
_0xa88a13.recordData.recorder.start()
|
||||
|
@ -5622,16 +5538,20 @@ window.EJS_main = function(_0xa88a13, _0x17edbf, _0x2c1832) {
|
|||
'ejs__contextmenu': true
|
||||
}), ' ul'));
|
||||
if (_0x4b9d55) {
|
||||
_0x7f9f36.contextMenu.style.display = 'block', _0x7f9f36.contextMenu.style.left = '' .concat(_0x24b1f3.layerX, 'px'), _0x7f9f36.contextMenu.style.top = '' .concat(_0x24b1f3.layerY, 'px');
|
||||
_0x7f9f36.contextMenu.style.display = 'block';
|
||||
_0x7f9f36.contextMenu.style.left = ''.concat(_0x24b1f3.layerX, 'px');
|
||||
_0x7f9f36.contextMenu.style.top = ''.concat(_0x24b1f3.layerY, 'px');
|
||||
var _0x1b48e7 = _0x23ffa1.call(this, '.' .concat(_0x449eac({
|
||||
'ejs__contextmenu': true
|
||||
}), ' ul li'));
|
||||
if (Array.from(_0x1b48e7).forEach(function(_0x228a1f, _0x123a07) {}), null === _0x2a1dda.getAttribute('menu')) {
|
||||
if (null === _0x2a1dda.getAttribute('menu')) {
|
||||
var _0x14264d = _0x428003('li', {});
|
||||
_0x14264d.appendChild(_0x428003('a', {
|
||||
'target': '_blank',
|
||||
'href': 'https://github.com/ethanaobrien/emulatorjs'
|
||||
}, 'EmulatorJS v' .concat(this.version))), _0x2a1dda.appendChild(_0x14264d), _0x2a1dda.setAttribute('menu', '');
|
||||
}, 'EmulatorJS v' .concat(this.version)));
|
||||
_0x2a1dda.appendChild(_0x14264d);
|
||||
_0x2a1dda.setAttribute('menu', '');
|
||||
}
|
||||
_0x2c1832 && clearTimeout(_0x2c1832), _0x2c1832 = setTimeout(function() {}, 0xfa0), _0x7f9f36.contextMenu.timer = _0x2c1832;
|
||||
} else _0x7f9f36.contextMenu.style.display = 'none';
|
||||
|
@ -5736,7 +5656,8 @@ window.EJS_main = function(_0xa88a13, _0x17edbf, _0x2c1832) {
|
|||
});
|
||||
_0x530042.call(this, '.' .concat(_0x449eac({
|
||||
'ejs__dialogs': true
|
||||
}))).appendChild(_0x2c1832), this.elements.dialogs.cache = _0x2c1832;
|
||||
}))).appendChild(_0x2c1832);
|
||||
this.elements.dialogs.cache = _0x2c1832;
|
||||
var _0x3c66db = _0x428003('div', {
|
||||
'class': _0x449eac({
|
||||
'ejs__dialog': true,
|
||||
|
@ -5773,7 +5694,9 @@ window.EJS_main = function(_0xa88a13, _0x17edbf, _0x2c1832) {
|
|||
'step': 0.01,
|
||||
'value': this.config.volume
|
||||
};
|
||||
_0xd299b.appendChild(_0x7f9f36.createRange.call(this, 'volume', _0x5dc0c0(_0x4bbcd0, {}))), this.elements.volume = _0xd299b, _0x17edbf.appendChild(_0xd299b);
|
||||
_0xd299b.appendChild(_0x7f9f36.createRange.call(this, 'volume', _0x5dc0c0(_0x4bbcd0, {})));
|
||||
this.elements.volume = _0xd299b;
|
||||
_0x17edbf.appendChild(_0xd299b);
|
||||
var _0x2746ab = _0x428003('div', {
|
||||
'class': _0x449eac({
|
||||
'ejs__menu': true
|
||||
|
@ -6314,7 +6237,7 @@ window.EJS_main = function(_0xa88a13, _0x17edbf, _0x2c1832) {
|
|||
var a = function(_0x154660, _0x15626f) {
|
||||
if (!(_0x154660 instanceof _0x15626f)) throw new TypeError('Cannot call a class as a function');
|
||||
}(this, _0x6954aa);
|
||||
this.version = '1.1.2';
|
||||
this.version = '1.1.5';
|
||||
this.system = '';
|
||||
this.adUrl = null;
|
||||
this.gameName = null;
|
||||
|
@ -6342,11 +6265,9 @@ window.EJS_main = function(_0xa88a13, _0x17edbf, _0x2c1832) {
|
|||
/*if (['dos'].includes(core)) {
|
||||
return 2;
|
||||
}*/
|
||||
if (useBeta === true) {
|
||||
if (window.WebAssembly) {
|
||||
var supportedCores = ['nes', 'snes', 'gb', 'nds'];
|
||||
return supportedCores.includes(core) ? 2 : 1;
|
||||
}
|
||||
if (useBeta === true && window.WebAssembly) {
|
||||
var supportedCores = ['nes', 'snes', 'gb', 'nds'];
|
||||
return supportedCores.includes(core) ? 2 : 1;
|
||||
}
|
||||
return 1;
|
||||
}(this.config.system, this.config.useBeta); // 2 = beta cores, 1 = old cores
|
||||
|
|
2
data/emu-min.js
vendored
2
data/emu-min.js
vendored
File diff suppressed because one or more lines are too long
|
@ -63,8 +63,17 @@ var EJS = function(_0x574f5e) {
|
|||
return Object.prototype.hasOwnProperty.call(_0x1ed01a, _0x4abf0b);
|
||||
};
|
||||
_0x1d686b.p = '';
|
||||
return _0x1d686b(_0x1d686b.s = 0x18c);
|
||||
}([null, null, null, null, null, null, function(_0x3982a1, _0x519c5e, _0x21c4c0) {
|
||||
_0x1d686b.s = 0x18c;
|
||||
return _0x1d686b(_0x1d686b.s);
|
||||
}([function(a) {
|
||||
a.exports = function(error, element, _this) {
|
||||
if (error.response.status === 0) {
|
||||
element.innerHTML = '<strong style="color:#f00;text-shadow: 0px 0px 3px;"><a target="_blank" href="https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS/Errors">'+_this.localization('CORS Error')+'</a></strong>';
|
||||
} else {
|
||||
element.innerHTML = '<strong style="color:#f00;text-shadow: 0px 0px 3px;">'+_this.localization('Network Error')+'</strong>';
|
||||
}
|
||||
}
|
||||
}, null, null, null, null, null, function(_0x3982a1, _0x519c5e, _0x21c4c0) {
|
||||
! function(_0x36fa8f) {
|
||||
'use strict';
|
||||
var _0x519c5e = function() {},
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
(async function() {
|
||||
var VERSION = 1.2;
|
||||
var VERSION = 1.5;
|
||||
if (window.location && ['localhost', '127.0.0.1'].includes(location.hostname)) {
|
||||
fetch('https://raw.githack.com/ethanaobrien/emulatorjs/main/data/version.json').then(response => {
|
||||
if (response.ok) {
|
||||
|
@ -12,7 +12,7 @@
|
|||
}
|
||||
})
|
||||
}
|
||||
var scriptTag = document.getElementsByTagName('script')[0]
|
||||
var scriptTag = document.getElementsByTagName('script')[0];
|
||||
function loadScript(file) {
|
||||
return new Promise(function (resolve, reject) {
|
||||
var script = document.createElement('script');
|
||||
|
|
|
@ -1 +1 @@
|
|||
{ "current_version": 1.2 }
|
||||
{ "current_version": 1.5 }
|
||||
|
|
Loading…
Reference in a new issue