Forum rules - please read before posting.

Seeming weirdness with using current time in save labels

In SaveSystem@GatherSaveFiles L146, you can see how we're constructing the creationDate, used as part of the save game label. Right now it's:
info[0].LastWriteTime.ToShortDateString () + " " + System.DateTime.Now.ToShortTimeString ()

It seems like it ought to be:
info[0].LastWriteTime.ToShortDateString () + " " + info[0].LastWriteTime.ToShortTimeString ()

Otherwise, we're using the right save date with the current time (i.e. the same incorrect time for all saves).


That said, this code path is normally overridden by labels stored in PlayerPrefs, so I'm not totally sure under what normal cases this is used. (It's running for me, because I turned off PlayerPrefs, so that I could more easily use the Steam cloud and sync my saves between computers) Just wanted to flag this in case this code is used for things.

Comments

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.