[Scummvm-tracker] [ScummVM :: Bugs] #14623: BACKENDS: iOS: Games and config being lost
ScummVM :: Bugs
trac at scummvm.org
Mon Dec 11 23:42:49 UTC 2023
#14623: BACKENDS: iOS: Games and config being lost
-----------------------+------------------------
Reporter: tghggns | Owner: (none)
Type: defect | Status: new
Priority: normal | Component: Port: iOS
Version: | Resolution:
Keywords: iOS config | Game:
-----------------------+------------------------
Comment (by criezy):
I have created a pull request to remove one of the main cause for this bug
(saving the state of ScummVM to the config file when it is closed while
playing a game). Instead the state is saved to a separate file.
https://github.com/scummvm/scummvm/pull/5515
This does not fully fix the bug, but it should happen a lot less often. As
written by larsamannen previously, to properly fix the bug and avoid file
corruption when killing ScummVM while it is writing a file, we will need
to modify how files are written, to write first to a new file with a
temporary name, and only when writing has finished we can rename the file
to replace the old file. Note that in theory this does not only impact the
config file, but we could be writing corrupted savefiles, so we may want
to write the fix in a general way for all files that we write.
--
Ticket URL: <https://bugs.scummvm.org/ticket/14623#comment:4>
ScummVM :: Bugs <https://bugs.scummvm.org>
ScummVM
More information about the Scummvm-tracker
mailing list