Files
VVVVVV/desktop_version/src
Misa 75ee657612 Explicitly prevent writing to saves if filesystem is not init
Another cause of #870 is d0ffafe117, as a
bisect tells me. What that commit did is remove screenbuffer as a
pointer, since it's a statically-allocated object that _should_ always
exist, and it removed the `screenbuffer == NULL` guards in savestats()
and savesettings(). Unfortunately, those guards did something very
important - namely, they prevented writing to the save files when the
filesystem wasn't initialized. But that wasn't made clear, because it
seemed like the point of those guards was to prevent dereferencing NULL.

So instead, explicitly make it clear that
FILESYSTEM_saveTiXml2Document() needs to fail if the filesystem isn't
initialized. I've done this by adding an isInit bool to
FileSystemUtils.cpp.
2022-03-12 16:50:32 -08:00
..
2021-09-24 16:37:27 -07:00
2022-02-11 17:31:41 -05:00
2021-09-06 18:56:39 -07:00
2021-09-06 18:56:39 -07:00
2021-12-18 00:01:32 -08:00
2021-09-27 10:32:23 -07:00
2021-12-25 23:01:45 -08:00
2021-12-25 11:38:12 -08:00
2021-02-25 19:38:25 -05:00
2022-02-11 17:31:41 -05:00
2021-09-06 18:56:39 -07:00
2022-02-11 17:31:41 -05:00
2021-09-24 16:37:27 -07:00
2022-02-11 17:31:41 -05:00
2022-02-11 17:31:41 -05:00
2021-12-25 23:01:45 -08:00
2021-12-25 23:14:12 -08:00
2021-09-06 18:56:39 -07:00
2021-09-24 16:37:27 -07:00
2021-09-06 18:56:39 -07:00
2020-11-04 12:06:57 -05:00
2020-11-04 12:06:57 -05:00