Skip to main content

Module files

Module files 

Source
Expand description

Files for the player (gasm:files, optional: check files::available): save hands the runner a copy to keep where the player finds it (Pictures// for images, Downloads// otherwise, a download in browsers). The game never learns the path.

Structs§

Save
A save handed to the runner: poll Save::state.

Enums§

State

Functions§

available
Whether the runner can save files for the player.
save
Save data as name (a file name, e.g. “photo-001.png”) of type mime (“image/png”). None if the runner refused (saving off, bad name or type, too big).