mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-04-28 03:59:58 -07:00
77 lines
1.7 KiB
C
77 lines
1.7 KiB
C
#pragma once
|
|
|
|
#include <stdint.h>
|
|
#include <stdbool.h>
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#define XTREME_SETTINGS_PATH CFG_PATH("xtreme_settings.txt")
|
|
#define XTREME_ASSETS_PATH EXT_PATH("asset_packs")
|
|
#define XTREME_MENU_OLD_PATH CFG_PATH("xtreme_apps.txt")
|
|
#define XTREME_MENU_PATH CFG_PATH("xtreme_menu.txt")
|
|
#define XTREME_ASSETS_PACK_NAME_LEN 32
|
|
|
|
typedef enum {
|
|
BatteryIconOff,
|
|
BatteryIconBar,
|
|
BatteryIconPercent,
|
|
BatteryIconInvertedPercent,
|
|
BatteryIconRetro3,
|
|
BatteryIconRetro5,
|
|
BatteryIconBarPercent,
|
|
BatteryIconCount,
|
|
} BatteryIcon;
|
|
|
|
typedef enum {
|
|
MenuStyleList,
|
|
MenuStyleWii,
|
|
MenuStyleCount,
|
|
} MenuStyle;
|
|
|
|
typedef struct {
|
|
bool is_nsfw; // TODO: replace with packs text support
|
|
|
|
char asset_pack[XTREME_ASSETS_PACK_NAME_LEN];
|
|
uint32_t anim_speed;
|
|
int32_t cycle_anims;
|
|
bool unlock_anims;
|
|
bool fallback_anim;
|
|
MenuStyle menu_style;
|
|
bool lock_on_boot;
|
|
bool bad_pins_format;
|
|
bool allow_locked_rpc_commands;
|
|
bool lockscreen_time;
|
|
bool lockscreen_seconds;
|
|
bool lockscreen_date;
|
|
bool lockscreen_statusbar;
|
|
bool lockscreen_prompt;
|
|
BatteryIcon battery_icon;
|
|
bool statusbar_clock;
|
|
bool status_icons;
|
|
bool bar_borders;
|
|
bool bar_background;
|
|
bool sort_dirs_first;
|
|
bool show_hidden_files;
|
|
bool show_internal_tab;
|
|
uint32_t favorite_timeout;
|
|
bool bad_bt;
|
|
bool bad_bt_remember;
|
|
bool dark_mode;
|
|
bool rgb_backlight;
|
|
uint32_t butthurt_timer;
|
|
uint32_t charge_cap;
|
|
} XtremeSettings;
|
|
|
|
void XTREME_SETTINGS_LOAD();
|
|
void XTREME_SETTINGS_SAVE();
|
|
XtremeSettings* XTREME_SETTINGS();
|
|
|
|
void XTREME_ASSETS_LOAD();
|
|
void XTREME_ASSETS_FREE();
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|