Correct placement of saveDatabaseLoaded invoke call

This commit is contained in:
Ethan O'Brien 2025-04-05 22:09:55 -05:00
parent 9aab1c54a9
commit 8b5d605a17
No known key found for this signature in database
GPG Key ID: 7A6E7CCD3BD93AB1
2 changed files with 1 additions and 1 deletions

View File

@ -61,7 +61,6 @@ class EJS_GameManager {
this.mkdir("/data/saves");
this.FS.mount(this.FS.filesystems.IDBFS, {autoPersist: true}, '/data/saves');
this.FS.syncfs(true, resolve);
this.EJS.callEvent("saveDatabaseLoaded", this.FS);
});
}
writeConfigFile() {

View File

@ -893,6 +893,7 @@ class EmulatorJS {
this.gameManager = new window.EJS_GameManager(this.Module, this);
await this.gameManager.loadExternalFiles();
await this.gameManager.mountFileSystems();
this.callEvent("saveDatabaseLoaded", this.gameManager.FS);
if (this.getCore() === "ppsspp") {
await this.gameManager.loadPpssppAssets();
}