nyx: Add Home Screen selection

You can now choose between Main menu and Launch/More Cfg as home screens.
This commit is contained in:
CTCaer
2020-04-30 14:49:28 +03:00
parent ab304c9178
commit 6d75f96ed5
4 changed files with 83 additions and 13 deletions

View File

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

View File

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