nyx: Allow disabling of Joycon

Setting `jcdisable=1` in nyx.ini disables the usage of Joycon completely.

This also disables the BT pairing data dumping tool.
This commit is contained in:
CTCaer committed 2020-10-20 10:21:48 +03:00
1 parent 2f5b52223c
commit dae7be8ec4
7 files changed
+29 -7

No files matched your search

+4
View File
@@ -60,6 +60,7 @@ void set_nyx_default_configuration()
n_cfg.home_screen = 0;
n_cfg.verification = 1;
n_cfg.ums_emmc_rw = 0;
n_cfg.jc_disable = 0;
}
int create_config_entry()
@@ -198,6 +199,9 @@ int create_nyx_config_entry()
f_puts("\numsemmcrw=", &fp);
itoa(n_cfg.ums_emmc_rw, lbuf, 10);
f_puts(lbuf, &fp);
f_puts("\njcdisable=", &fp);
itoa(n_cfg.jc_disable, lbuf, 10);
f_puts(lbuf, &fp);
f_puts("\n", &fp);
f_close(&fp);