Resolved #8863 - Deprecated GameSettings.resolution

This commit is contained in:
Yair Morgenstern 2023-03-11 21:13:23 +02:00
parent 7ffc1e4eeb
commit 2d54c56c7b
2 changed files with 0 additions and 6 deletions

View File

@ -41,8 +41,6 @@ class GameSettings {
var language: String = Constants.english
@Transient
var locale: Locale? = null
@Deprecated("Since 4.3.6 - replaces with screenSize")
var resolution: String = "900x600"
var screenSize:ScreenSize = ScreenSize.Small
var screenMode: Int = 0
var tutorialsShown = HashSet<String>()

View File

@ -10,10 +10,6 @@ fun GameSettings.doMigrations(json: JsonValue) {
migrateMultiplayerSettings(json)
version = 1
}
if (resolution != ""){
screenSize = ScreenSize.values().first { it.virtualWidth == resolution.split("x").first().toFloat() }
resolution = ""
}
}
fun GameSettings.isMigrationNecessary(): Boolean {