Feature: Persistant rotation of numbered auto/netsave after restart (#9397)
It was always starting from 0 on openttd restart. Now the most recent auto/netsave number will be used as a base to generate the next filename.
This commit is contained in:
@@ -11,6 +11,7 @@
|
||||
#define SAVELOAD_H
|
||||
|
||||
#include "../fileio_type.h"
|
||||
#include "../fios.h"
|
||||
#include "../strings_type.h"
|
||||
#include "../core/span_type.hpp"
|
||||
#include <optional>
|
||||
@@ -381,7 +382,7 @@ void WaitTillSaved();
|
||||
void ProcessAsyncSaveFinish();
|
||||
void DoExitSave();
|
||||
|
||||
void DoAutoOrNetsave(int &counter, bool netsave = false);
|
||||
void DoAutoOrNetsave(FiosNumberedSaveName &counter);
|
||||
|
||||
SaveOrLoadResult SaveWithFilter(struct SaveFilter *writer, bool threaded);
|
||||
SaveOrLoadResult LoadWithFilter(struct LoadFilter *reader);
|
||||
|
Reference in New Issue
Block a user