Check for older cores

This commit is contained in:
Ethan O'Brien 2023-03-07 09:56:23 -06:00
parent 8a93ce592a
commit 5d985fd239

View file

@ -4579,7 +4579,11 @@ window.EJS_main = function(_0xa88a13, _0x17edbf, _0x2c1832) {
_this.volume < 1 && (_0x17edbf = 0 === _this.volume ? -0x50 : 0x1e * _this.volume - 0x1e, _0x2c1832(_0x17edbf)), _this.muted && (_0x17edbf = -0x50), _0x2c1832(_0x17edbf);
};
}
if (_0x27f4c4.Module._save_file_path) {
_0x378b5c.getSaveFilePath = _0x27f4c4.Module.cwrap('save_file_path', 'string', []);
} else {
_0x378b5c.getSaveFilePath = () => null;
}
// Returns a Uint8Array of the save file
_0x378b5c.readSaveFile = function() {
return FS.readFile(_0x378b5c.getSaveFilePath());