nyx: Add time offset

The epoch is based on HOS format.

An automatic time set will be implemented in a later version.
This commit is contained in:
CTCaer
2020-04-30 14:51:48 +03:00
parent 6d75f96ed5
commit c072041039
4 changed files with 12 additions and 1 deletions

View File

@@ -57,6 +57,7 @@ void set_default_configuration()
void set_nyx_default_configuration()
{
n_cfg.themecolor = 167;
n_cfg.timeoff = 0;
n_cfg.home_screen = 0;
n_cfg.verification = 1;
}
@@ -192,6 +193,9 @@ int create_nyx_config_entry()
f_puts("[config]\nthemecolor=", &fp);
itoa(n_cfg.themecolor, lbuf, 10);
f_puts(lbuf, &fp);
f_puts("\ntimeoff=", &fp);
itoa(n_cfg.timeoff, lbuf, 10);
f_puts(lbuf, &fp);
f_puts("\nhomescreen=", &fp);
itoa(n_cfg.home_screen, lbuf, 10);
f_puts(lbuf, &fp);

View File

@@ -45,6 +45,7 @@ typedef struct _hekate_config
typedef struct _nyx_config
{
u32 themecolor;
s32 timeoff;
u32 home_screen;
u32 verification;
} nyx_config;