view emscripten_pre.js @ 2665:54ac5fe14cf9

Allow calling functions directly as if they were commands
author Michael Pavone <pavone@retrodev.com>
date Fri, 07 Mar 2025 21:45:53 -0800
parents 99297d5f4c5d
children
line wrap: on
line source

Module.noInitialRun = true;
Module.preRun = [() => {
	FS.mount(IDBFS, {autoPersist: true}, '/home/web_user');
	FS.syncfs(true, (err) => {
		if (err) {
			console.log('Error loading IDBFS', err);
		}
		Module.callMain();
	});
}];