mirror of
https://github.com/yairm210/Unciv.git
synced 2025-02-11 11:28:03 +07:00
Resolved #8863 - Deprecated GameSettings.resolution
This commit is contained in:
parent
7ffc1e4eeb
commit
2d54c56c7b
@ -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>()
|
||||
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user