EmulatorJS / EmulatorJS

The official home of the EmulatorJS project
https://emulatorjs.org
GNU General Public License v3.0
1.29k stars 441 forks source link

[Bug] Accessing the emulator state #793

Closed MorenoIgor closed 2 months ago

MorenoIgor commented 2 months ago

I'm working on a project with the Master System core, with a routine that uses EJS_emulator.gameManager.getState() to periodically check the virtual RAM.

However the emulator now throws an uncaught error (#44, FS error) when calling this function. Tracing the source, it appears to come from the fact that the getState function somehow uses the file system to get the state file, which I believe was not the case before.

Is this the current intended behavior? If so, is there another way of reading the virtual machine's RAM?

Data used: https://cdn.emulatorjs.org/stable/data/ Loaders used: both https://cdn.jsdelivr.net/gh/EmulatorJS/EmulatorJS@latest/data/loader.js and https://cdn.emulatorjs.org/stable/data/loader.js

ethanaobrien commented 2 months ago

Clear the sites data, the core version number wasn't bumped for the last update which has resulted in older cores being cached. A long term solution will come in the next update

MorenoIgor commented 2 months ago

Thanks, that did fix it! =)