mirror of
https://github.com/Eaglercraft-Archive/Eaglercraftx-1.8.8-src.git
synced 2025-06-27 18:38:14 -05:00
Update #45 - Fixed various issues with the client
This commit is contained in:
@ -14,20 +14,24 @@
|
||||
*
|
||||
*/
|
||||
|
||||
var loaderWASMPath = window["__eaglercraftXLoaderContextPre"]["loaderWASMURL"];
|
||||
|
||||
Module["locateFile"] = function(path) {
|
||||
if(path === "loader.wasm") {
|
||||
return window.__eaglercraftXLoaderContextPre.loaderWASMURL;
|
||||
return loaderWASMPath;
|
||||
}else {
|
||||
return path;
|
||||
}
|
||||
};
|
||||
|
||||
const rootElement = window.__eaglercraftXLoaderContextPre.rootElement;
|
||||
const optsObj = window.__eaglercraftXLoaderContextPre.eaglercraftXOpts;
|
||||
const epwFile = window.__eaglercraftXLoaderContextPre.theEPWFileBuffer;
|
||||
const splashURL = window.__eaglercraftXLoaderContextPre.splashURL;
|
||||
var rootElement = window["__eaglercraftXLoaderContextPre"]["rootElement"];
|
||||
var optsObj = window["__eaglercraftXLoaderContextPre"]["eaglercraftXOpts"];
|
||||
var epwFile = window["__eaglercraftXLoaderContextPre"]["theEPWFileBuffer"];
|
||||
var splashURL = window["__eaglercraftXLoaderContextPre"]["splashURL"];
|
||||
|
||||
const results = [ null ];
|
||||
delete window["__eaglercraftXLoaderContextPre"];
|
||||
|
||||
var results = [ null ];
|
||||
|
||||
function createCrashParentElement() {
|
||||
var oldSplash = null;
|
||||
@ -59,3 +63,9 @@ function createCrashParentElement() {
|
||||
|
||||
return parentElement;
|
||||
}
|
||||
|
||||
function unsetHeapViews() {
|
||||
HEAP = HEAP8 = HEAPU8 = HEAP16 = HEAPU16 = HEAP32 = HEAPU32 = HEAPF32 = HEAPF64 = null;
|
||||
wasmMemory = null;
|
||||
Module = null;
|
||||
}
|
||||
|
Reference in New Issue
Block a user