[Scummvm-devel] Porters: Adding seeking to InSaveFile for HE games
Marcus Comstedt
marcus at mc.pp.se
Sat Apr 22 04:52:04 CEST 2006
Max Horn <max at quendi.de> writes:
[...]
> Luckily, files are only opened for either reading or writing, not
> both at once. So I would have already converted the code, but for one
> problem: HE games need to seek in those "save games", which is
> currently not possible.
>
> There are two ways around this: I could simply read the whole file
> into a buffer, and do seeking in there as desired. Much simpler,
> however, would be to change InSaveFile to derive from
> SeekableReadStream instead of ReadStream. For the default save game
> support, that's totally trivial to do. Looking through the savegame
> implementations for DC, PalmOS and PS2, I believe it's rather easy to
> add seeking there, too (but please correct me if I am mistaken here).
My one worry here is why you call them "save games", which quotation
marks. Are they not really save games? I'd rather not litter the
memory cards with files that do not really belong there. What is
stored in these files, and why do they need to be put in persistent
storage?
// Marcus
More information about the Scummvm-devel
mailing list