mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-14 09:48:12 +07:00
Allow mods to contain a "preview.png" file for visual indication
This commit is contained in:
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user