Work around mono url differences (#10551)

This commit is contained in:
Larry Ewing 2019-05-27 04:08:25 -05:00 committed by Steve Sanderson
parent a20ddd8374
commit cc40c37765
4 changed files with 4 additions and 1 deletions

View File

@ -880,6 +880,7 @@ function createEmscriptenModuleInstance(loadAssemblyUrls, onReady, onError) {
});
});
module.postRun.push(function () {
MONO.mono_wasm_setenv("MONO_URI_DOTNETRELATIVEORABSOLUTE", "true");
var load_runtime = Module.cwrap('mono_wasm_load_runtime', null, ['string', 'number']);
load_runtime(appBinDirName, MonoDebugger_1.hasDebuggingEnabled() ? 1 : 0);
MONO.mono_wasm_runtime_is_ready = true;

File diff suppressed because one or more lines are too long

View File

@ -262,6 +262,7 @@ function createEmscriptenModuleInstance(loadAssemblyUrls: string[], onReady: ()
});
module.postRun.push(() => {
MONO.mono_wasm_setenv("MONO_URI_DOTNETRELATIVEORABSOLUTE","true");
const load_runtime = Module.cwrap('mono_wasm_load_runtime', null, ['string', 'number']);
load_runtime(appBinDirName, hasDebuggingEnabled() ? 1 : 0);
MONO.mono_wasm_runtime_is_ready = true;

View File

@ -24,4 +24,5 @@ declare namespace Mono {
declare namespace MONO {
var loaded_files: string[];
var mono_wasm_runtime_is_ready: boolean;
function mono_wasm_setenv (name: string, value: string): void;
}