ffpr - v0.7.0
    Preparing search index...

    Function save

    • Encodes save data and writes it to a file.

      Parameters

      • filename: string

        Path to the save file. An existing file is overwritten.

      • data: Data

        Save data, as returned by unpack or load.

      • type: Type = 'switch'

        Platform to encode the save file for.

      Returns Promise<void>

      If pictureData is not a Buffer, Uint8Array or base64 string.