Mercurial > repos > blastem
comparison 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 |
comparison
equal
deleted
inserted
replaced
2657:d1f689ed3956 | 2658:99297d5f4c5d |
---|---|
1 Module.noInitialRun = true; | |
2 Module.preRun = [() => { | |
3 FS.mount(IDBFS, {autoPersist: true}, '/home/web_user'); | |
4 FS.syncfs(true, (err) => { | |
5 if (err) { | |
6 console.log('Error loading IDBFS', err); | |
7 } | |
8 Module.callMain(); | |
9 }); | |
10 }]; |