Allow mods to contain a "preview.png" file for visual indication

This commit is contained in:
Yair Morgenstern
2023-05-14 14:36:46 +03:00
parent 48bd416347
commit 5bbd8bce53
5 changed files with 42 additions and 12 deletions

View File

@ -31,17 +31,12 @@ class OnlineMultiplayerServer(
val authHeader = if (authenticationHeader == null) {
val settings = UncivGame.Current.settings.multiplayer
mapOf("Authorization" to settings.getAuthHeader())
} else {
authenticationHeader
}
} else authenticationHeader
return if (serverUrl == Constants.dropboxMultiplayerServer) {
DropBox
} else {
UncivServerFileStorage.apply {
serverUrl = this@OnlineMultiplayerServer.serverUrl
this.authHeader = authHeader
}
return if (serverUrl == Constants.dropboxMultiplayerServer) DropBox
else UncivServerFileStorage.apply {
serverUrl = this@OnlineMultiplayerServer.serverUrl
this.authHeader = authHeader
}
}