Example #1
0
static void menu_format_normal(char** buf) {
	*buf = calloc(100, 1);

#if WITH_XIAOMI_DUALBOOT
	if(device.bootmode==BOOTMODE_AUTO) {
		snprintf(*buf, 100, "    Normal Powerup [%s=%s]", strbootmode(device.bootmode), get_dualboot_mode()==BOOTMODE_SECOND?"System2":"System1");
		return;
	}
#endif

	snprintf(*buf, 100, "    Normal Powerup [%s]", strbootmode(device.bootmode));
}
Example #2
0
static void menu_format_bootmode(char** buf) {
	*buf = calloc(100, 1);
	snprintf(*buf, 100, "    Bootmode [%s]", strbootmode(device.bootmode));
}