Get newest Save

Using Naninovel C# APIs: adding custom actor implementations or commands, overriding engine services, integrating with other systems, etc.
Post Reply
Kad
Posts: 3
Joined: 06 Mar 2022 13:10

Get newest Save

Post by Kad »

Hey. I added a "Load Game" button to the Title Menu where you can load a game, like usually the "Continue" Button does.
Now I want to program the actual "Continue" button in a way that it loads the most recent save or quicksave.

So basically I need to get all quick saves and all saves and check which one is the newst. Does anyone know a viable approach to this?
I currently even fail to load all Save Files into a C# Variable at all :/

idaot
support
Posts: 275
Joined: 01 Aug 2020 08:25

Re: Get newest Save

Post by idaot »

You can override SaveLoadMenu and use the Slots variable of the GameStateSlotsGrid to pick the most recent save state. Each GameSateSlot has a GameStateMap which stores the SaveDateTime.

Post Reply