Mercurial > repos > blastem
view emscripten_pre.js @ 2658:99297d5f4c5d
Persist save states and config in emscripten build via IDBFS module
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Tue, 04 Mar 2025 00:05:12 -0800 |
parents | |
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(); }); }];