pub fn platform(name: &str) -> Box<dyn Storage>Expand description
The storage backend for this platform, for the game whose storage is
called name (AppConfig::storage_name). Native
falls back to an in-memory store (nothing persists) if the OS has no
usable data directory (the relevant environment variable is unset,
which only happens on unsupported or misconfigured systems); it logs an
error when that happens.