mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-31 07:09:26 +07:00
performance: Don't calc checksum for non-multiplayer games, no one cares if you hack your own game
This commit is contained in:
@ -372,7 +372,7 @@ class UncivFiles(
|
||||
}
|
||||
|
||||
/** Returns gzipped serialization of [game], optionally gzipped ([forceZip] overrides [saveZipped]) */
|
||||
fun gameInfoToString(game: GameInfo, forceZip: Boolean? = null, updateChecksum:Boolean=true): String {
|
||||
fun gameInfoToString(game: GameInfo, forceZip: Boolean? = null, updateChecksum:Boolean=false): String {
|
||||
game.version = GameInfo.CURRENT_COMPATIBILITY_VERSION
|
||||
|
||||
if (updateChecksum) game.checksum = game.calculateChecksum()
|
||||
|
Reference in New Issue
Block a user