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

Marcus Comstedt marcus at mc.pp.se
Sat Apr 22 05:44:04 CEST 2006

Max Horn <max at quendi.de> writes:

> * When trying to open a file for reading, you first try to open it
> * via the SaveFileManager. If that works, insert the returned pointer
> * into _hReadFileTable. If that failed, create a File object (via
> * new),  and try to open the file that way. [...]

Keep in mind that trying to open a non-existing savefile is a rather
slow procedure on the Dreamcast, as it needs to read the directories
of all connected memorycards.  This is the reason for the
listSavefiles() function in SaveFileManager.  (Previously the SCUMM
engine would speculatively try to open 100 savegames when you entered
the load/save dialog, which could take something like half a minute.)

  // Marcus

More information about the Scummvm-devel mailing list