[Scummvm-devel] Porters: Adding seeking to InSaveFile for HE games
kirben at optusnet.com.au
Wed Apr 26 04:10:07 CEST 2006
----- Original Message -----
From: "Max Horn" <max at quendi.de>
>> This might be a good time, to ask about the possible support of deleting
>> and renaming save game files too? as this would allow the original
>> load/save system of HE games to be used.
> This is rather independent from the discussion at hand, but certainly a
> reasonable question.
> So, what are you suggesting precisely? Adding two new calls to
> SaveFileManager, like:
> int rename(oldName, newName)
> int delete(name)
> where the int return value could be used to indicate errors (like "file
> is protected and can't be deleted). Also, what happens if a file is
> renamed, and the new name equals that of an existing file? Generate an
> error (as return value)? Overwrite the target file?
Yes, adding two additonal calls to handle delete and rename of saved games,
like you have described.
The method used by original, was to save game to a temporary file, before
entering load/save screen. If a game is saved, delete the old saved game
file and rename the temporary file. So that rename problem should never
More information about the Scummvm-devel