Davidobot / love.js

LÖVE ported to the web using Emscripten, updated to the latest Emscripten and LÖVE (v11.5)
MIT License
605 stars 27 forks source link

Persistent file saving #75

Closed Svalorzen closed 1 year ago

Svalorzen commented 1 year ago

I was wondering if there was a way to make file writes persistent across refreshes. At the moment all my save/load code works correctly, but only until I refresh my browser; afterwards everything is lost. Maybe using cookies?

Could be that it's outside of the scope of love.js though, I'm definitely not an expert on this.

Davidobot commented 1 year ago

There should be persistent file saving.. Check the spec demo hosted on my website. It worked last time I checked anyways.

Svalorzen commented 1 year ago

Ah, completely my bad, I was using io.open instead of the LOVE filesystem functions for writing. Thanks, apologies!