mirror of
https://github.com/yairm210/Unciv.git
synced 2025-01-13 00:04:38 +07:00
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:
parent
30a91f2f4a
commit
77f02600fd
@ -313,6 +313,9 @@ class UncivFiles(
|
|||||||
getGeneralSettingsFile().writeString(json().toJson(gameSettings), false, Charsets.UTF_8.name())
|
getGeneralSettingsFile().writeString(json().toJson(gameSettings), false, Charsets.UTF_8.name())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//endregion
|
||||||
|
//region Scenarios
|
||||||
|
|
||||||
val scenarioFolder = "scenarios"
|
val scenarioFolder = "scenarios"
|
||||||
fun getScenarioFiles() = sequence {
|
fun getScenarioFiles() = sequence {
|
||||||
|
|
||||||
@ -340,6 +343,8 @@ class UncivFiles(
|
|||||||
return game
|
return game
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//endregion
|
||||||
|
|
||||||
companion object {
|
companion object {
|
||||||
|
|
||||||
var saveZipped = false
|
var saveZipped = false
|
||||||
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user