Hi,
[Quotes from Lars Skovlund, Brett Leslie Porter, Rink Springer, in that
order]
> > Nice-to-have stuff:
> > - Sort savegames by date of last modification (requires a call to fstat(),
> > which, in all likelihood, doesn't exist on non-UNIX platforms)
> IIRC, Sierra SCI does this when saving with a clever update algorithm for
> the game ID file. We could probably do the same and avoid fstat()
> entirely.
Adding another file would make it harder to copy savegames from one
location to another. ATM, each savegame directory exists independantly of
the rest of the world; I believe that this is a good thing.
This also allows users to move a file to the top of the savegame list by
running 'touch [game name].id'.
> I believe that this exists under Win32 (you could check the Platform SDK
> documentation at msdn.microsoft.com). If not, there is at least a very
> similar call that could be wrapped by FreeSCI.
A wrapped "get_file_lastmod_date()" (or whatever) function should do the
trick, I agree.
> What about a simple findfirst() call for the DOS platforms and a
> readdir() for the UNIX platforms? Won't that work?
IIRC, readdir() doesn't care about the last modification timestamp. I
don't know about findfirst(), though.
llap,
Christoph