[][src]Function quicksilver::saving::save_raw

pub fn save_raw(
    appname: &str,
    profile: &str,
    data: &[u8]
) -> Result<(), SaveError>

Save some raw bytes to the given profile

Different platforms may have different save locations: on the Web, data is saved in local storage, on the desktop, it is stored in some appropriate home-directory folder.

The appname should be some constant; this is used to name the file to place the save in on desktop platforms. The profile should allow multiple saves of the same game (save slots, numbered saves, different players) etc.