Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
emscripten: signal when data is written (so it persists) #1631
I'm holding off until 7.1.2 is out to merge this.
That being said, I'm wondering if it might make sense to deal with this at some sort of lower level - like through a patch to Python. It just feels really wrong to annotate Ren'Py with code that just brings things into compliance with the way Python is documented to work, you know?
Can you call the emscripten stuff from C? It should be easy to check to see if a Python file object is read-write, and call if from there.
This is necessary to synchronize the
added a commit
this pull request
Dec 10, 2018
I had made a few changes since then to avoid doing many syncs during autosave (which does around 10 renames in a row) - i.e. no sync on rename, and sync at the end of autosave_thread.