Save compatibility handling (#7255)

* Add serialization version to GameInfo

* Add handling of incompatible saves due to a dfiferent save version

* Fix compilation?

* Fix ios compilation

* Refactor: Make it clearer that GameInfo serialization version is only supposed to be incremented when it's guaranteed to cause issues & rename to compatibility version

* Update initial version

* Update initial version

* Fix merge mistake
This commit is contained in:
Timo T
2022-07-01 08:34:41 +02:00
committed by GitHub
parent 08cede4f5a
commit 57ed61af41
70 changed files with 545 additions and 368 deletions

View File

@ -10,7 +10,7 @@ class IOSLauncher extends IOSApplication.Delegate {
@Override
protected IOSApplication createApplication() {
IOSApplicationConfiguration config = new IOSApplicationConfiguration();
return new IOSApplication(new com.unciv.UncivGame("IOS"), config);
return new IOSApplication(new com.unciv.UncivGame(), config);
}
public static void main(String[] argv) {
@ -18,4 +18,4 @@ class IOSLauncher extends IOSApplication.Delegate {
UIApplication.main(argv, null, IOSLauncher.class);
pool.close();
}
}
}