[Scummvm-devel] Porters: Adding seeking to InSaveFile for HE games

Max Horn max at quendi.de
Sat Apr 22 05:01:04 CEST 2006


Am 22.04.2006 um 13:51 schrieb Marcus Comstedt:

>
> 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?

I'll defer the answer to this question to the HE engine folks  
(Kirben, Eugene, cyx, khalek...).


Cheers,
Max





More information about the Scummvm-devel mailing list