mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-23 11:34:54 -04:00
Resolved ANRs when pausing game due to game clone time
This commit is contained in:
parent
2ee5f08855
commit
2ac1699321
@ -399,7 +399,8 @@ open class UncivGame(val isConsoleMode: Boolean = false) : Game(), PlatformSpeci
|
||||
// already has, but if we do _our_ pause before the MusicController timer notices, it will at least remember the current track.
|
||||
if (::musicController.isInitialized) musicController.pause()
|
||||
val curGameInfo = gameInfo
|
||||
if (curGameInfo != null) files.autosaves.requestAutoSave(curGameInfo)
|
||||
// Since we're pausing the game, we don't need to clone it before autosave - no one else will touch it
|
||||
if (curGameInfo != null) files.autosaves.requestAutoSaveUnCloned(curGameInfo)
|
||||
super.pause()
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user