Encodes save data and writes it to a file.
Path to the save file. An existing file is overwritten.
Save data, as returned by unpack or load.
unpack
load
Platform to encode the save file for.
If pictureData is not a Buffer, Uint8Array or base64 string.
pictureData
Buffer
Uint8Array
Encodes save data and writes it to a file.