view emscripten_pre.js @ 2664:36ae207af490

Awful hack to work around what seems like a bug in the Emscripten version of SDL2
author Michael Pavone <pavone@retrodev.com>
date Thu, 06 Mar 2025 01:47:49 -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();
	});
}];