loadGame

abstract fun loadGame(loadCompleteCallback: (GameInfo?, Exception?) -> Unit)

Load from custom location

Loads a game from an external source asynchronously, then calls loadCompleteCallback with the loaded GameInfo. On success, this is also expected to set the loaded GameInfo's property customSaveLocation. Note that there is no hint so pass a default location or a way to remember the folder the user chose last time.

Parameters

loadCompleteCallback

Action to call upon completion (success and failure)

Sources

jvm source
Link copied to clipboard