replaceMap

fun replaceMap(newMapDirectoryPath: File, newMapFileList: List<NewMapFile>?, callback: Callback<Unit, MapUpdateError>, progressReporter: (Int) -> Unit)

Replace the current onboard map with the given map.

Parameters

newMapDirectoryPath

Path to the directory containing the ROOT.NDS file of the new map.

newMapFileList

List of files to copy. If null, all files in newMapDirectoryPath are copied without checksum validation.

callback

Called when the operation finishes successfully or with an error.

progressReporter

Reports the progress of the operation.