Problem
ROM directories configured in the console settings screen are lost when the app is closed and reopened. The user has to manually re-pick every ROM folder each launch.
Root Cause
main.js exposes loadConfig and saveConfig IPC handlers that read/write console-mini.json in app.getPath("userData"). However, the React frontend never calls these handlers.
In the frontend bundle (dist/assets/index-*.js):
saveConfig and loadConfig exist only as empty stubs in the bridge mock (saveConfig:async()=>{}, loadConfig:async()=>({}))
setRomDir updates the Zustand in-memory store but there is no corresponding bridge.saveConfig() call
- On mount, there is no
bridge.loadConfig() to restore previously saved directories
Expected Behavior
- When a user picks a ROM directory for a console,
saveConfig should be called to persist it
- On app launch,
loadConfig should be called and directories restored
Suggested Fix
In the component that calls setRomDir(e, g), add a bridge.saveConfig({ romDirs }) after the state update. On app mount or when the console view loads, call bridge.loadConfig() and hydrate the Zustand store.
Version
0.1.2 (arm64) — console-mini.json is written on disk by main but is never referenced by the frontend.
Problem
ROM directories configured in the console settings screen are lost when the app is closed and reopened. The user has to manually re-pick every ROM folder each launch.
Root Cause
main.jsexposesloadConfigandsaveConfigIPC handlers that read/writeconsole-mini.jsoninapp.getPath("userData"). However, the React frontend never calls these handlers.In the frontend bundle (
dist/assets/index-*.js):saveConfigandloadConfigexist only as empty stubs in the bridge mock (saveConfig:async()=>{},loadConfig:async()=>({}))setRomDirupdates the Zustand in-memory store but there is no correspondingbridge.saveConfig()callbridge.loadConfig()to restore previously saved directoriesExpected Behavior
saveConfigshould be called to persist itloadConfigshould be called and directories restoredSuggested Fix
In the component that calls
setRomDir(e, g), add abridge.saveConfig({ romDirs })after the state update. On app mount or when the console view loads, callbridge.loadConfig()and hydrate the Zustand store.Version
0.1.2 (arm64) —
console-mini.jsonis written on disk by main but is never referenced by the frontend.