pub struct Settings {Show 20 fields
pub xp: u32,
pub badges: u32,
pub lang: [u8; 2],
pub country: [u8; 2],
pub name: String,
pub timezone: String,
pub rotate_screen: bool,
pub screen_brightness: u8,
pub leds_brightness: u8,
pub speakers_volume: u8,
pub headphones_volume: u8,
pub font_size: u8,
pub theme: u32,
pub auto_lock: u8,
pub reduce_flashing: bool,
pub telemetry: bool,
pub gamepad_mode: bool,
pub contrast: bool,
pub easter_eggs: bool,
pub extra_flags: u32,
}Expand description
System settings. Stored in sys/config.
Since we don’t have a realiable vesioning for the system config, some of the settings are added “just in case” and might be not used yet or maybe even won’t be ever used.
Fields§
§xp: u32How much XP the player earned over all games.
badges: u32How many badges the player earned over all games.
lang: [u8; 2]A two-letter ASCII ISO 639 Set 1 language code.
country: [u8; 2]A two-letter ASCII uppercase ISO 3166-1 alpha-2 country code.
name: StringThe device name. Randomly generated when creating vFS.
timezone: StringThe full timezone name as in the IANA database.
rotate_screen: boolIf true, rotate the image on the screen 180 degrees.
screen_brightness: u8Brightness of the screen backlight.
leds_brightness: u8Brightness of the LEDs.
speakers_volume: u8How loud the speakers should play sounds.
headphones_volume: u8How loud the headphones should play sounds.
font_size: u8The preferred font size (text character height) in pixels.
theme: u32Color scheme to use.
auto_lock: u8Automatically lock the screen after N minutes.
If zero, never locks automatically. The screen is never locked when in multiplayer.
reduce_flashing: boolIf enabled, apps are advised to skip flashy animations.
telemetry: boolIf enabled, collect and send anonymous telemetry.
gamepad_mode: boolEmulate gamepad when connecting Firefly Zero to a PC via USB.
contrast: boolIncrease contrast of colors in the default color palette.
easter_eggs: boolLet the system apps show easter eggs, holiday effects, and weird jokes.
extra_flags: u32Any feature new fields will be encoded in this field, for backward compatibility.