Work around mono url differences (#10551)
This commit is contained in:
parent
a20ddd8374
commit
cc40c37765
|
|
@ -880,6 +880,7 @@ function createEmscriptenModuleInstance(loadAssemblyUrls, onReady, onError) {
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
module.postRun.push(function () {
|
module.postRun.push(function () {
|
||||||
|
MONO.mono_wasm_setenv("MONO_URI_DOTNETRELATIVEORABSOLUTE", "true");
|
||||||
var load_runtime = Module.cwrap('mono_wasm_load_runtime', null, ['string', 'number']);
|
var load_runtime = Module.cwrap('mono_wasm_load_runtime', null, ['string', 'number']);
|
||||||
load_runtime(appBinDirName, MonoDebugger_1.hasDebuggingEnabled() ? 1 : 0);
|
load_runtime(appBinDirName, MonoDebugger_1.hasDebuggingEnabled() ? 1 : 0);
|
||||||
MONO.mono_wasm_runtime_is_ready = true;
|
MONO.mono_wasm_runtime_is_ready = true;
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
|
|
@ -262,6 +262,7 @@ function createEmscriptenModuleInstance(loadAssemblyUrls: string[], onReady: ()
|
||||||
});
|
});
|
||||||
|
|
||||||
module.postRun.push(() => {
|
module.postRun.push(() => {
|
||||||
|
MONO.mono_wasm_setenv("MONO_URI_DOTNETRELATIVEORABSOLUTE","true");
|
||||||
const load_runtime = Module.cwrap('mono_wasm_load_runtime', null, ['string', 'number']);
|
const load_runtime = Module.cwrap('mono_wasm_load_runtime', null, ['string', 'number']);
|
||||||
load_runtime(appBinDirName, hasDebuggingEnabled() ? 1 : 0);
|
load_runtime(appBinDirName, hasDebuggingEnabled() ? 1 : 0);
|
||||||
MONO.mono_wasm_runtime_is_ready = true;
|
MONO.mono_wasm_runtime_is_ready = true;
|
||||||
|
|
|
||||||
|
|
@ -24,4 +24,5 @@ declare namespace Mono {
|
||||||
declare namespace MONO {
|
declare namespace MONO {
|
||||||
var loaded_files: string[];
|
var loaded_files: string[];
|
||||||
var mono_wasm_runtime_is_ready: boolean;
|
var mono_wasm_runtime_is_ready: boolean;
|
||||||
|
function mono_wasm_setenv (name: string, value: string): void;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue