Unit test to catch game loading problems with religion enabled (#11821)

* Lint regions in UncivFiles

* Create a load-predefined-game test that catches the 4.12.2 bug
This commit is contained in:
SomeTroglodyte 2024-06-23 18:18:58 +02:00 committed by GitHub
parent 30a91f2f4a
commit 77f02600fd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 16 additions and 1 deletions

View File

@ -313,6 +313,9 @@ class UncivFiles(
getGeneralSettingsFile().writeString(json().toJson(gameSettings), false, Charsets.UTF_8.name())
}
//endregion
//region Scenarios
val scenarioFolder = "scenarios"
fun getScenarioFiles() = sequence {
@ -340,6 +343,8 @@ class UncivFiles(
return game
}
//endregion
companion object {
var saveZipped = false

File diff suppressed because one or more lines are too long