1
0
Fork 0
mirror of https://github.com/CTCaer/hekate.git synced 2024-11-23 02:16:41 +00:00

main: Fix update.bin creation on first boot

This commit is contained in:
CTCaer 2020-10-27 21:27:51 +02:00
parent 1f5b371608
commit 8f222fd0bd
2 changed files with 10 additions and 10 deletions

View file

@ -299,7 +299,7 @@ void auto_launch_update()
else else
{ {
u8 *buf = calloc(0x200, 1); u8 *buf = calloc(0x200, 1);
is_ipl_updated(buf, "bootloader/update.bin", false); is_ipl_updated(buf, "bootloader/update.bin", true);
free(buf); free(buf);
} }
} }

View file

@ -646,32 +646,32 @@ static lv_res_t _create_window_fuses_info_status(lv_obj_t *btn)
switch ((ram_density.dev0_ch0 & 0x3C) >> 2) switch ((ram_density.dev0_ch0 & 0x3C) >> 2)
{ {
case 2: case 2:
strcat(txt_buf, "4x512MB"); strcat(txt_buf, " x 512MB");
break; break;
case 3: case 3:
strcat(txt_buf, "4x768MB"); strcat(txt_buf, " x 768MB");
break; break;
case 4: case 4:
strcat(txt_buf, "4x1GB"); strcat(txt_buf, " x 1GB");
break; break;
default: default:
strcat(txt_buf, "4xUnk"); strcat(txt_buf, " x Unk");
break; break;
} }
s_printf(txt_buf + strlen(txt_buf), " (%d) #FF8000 |# ", (ram_density.dev0_ch0 & 0x3C) >> 2); s_printf(txt_buf + strlen(txt_buf), " (%d) #FF8000 |# ", (ram_density.dev0_ch0 & 0x3C) >> 2);
switch ((ram_density.dev1_ch0 & 0x3C) >> 2) switch ((ram_density.dev1_ch0 & 0x3C) >> 2)
{ {
case 2: case 2:
strcat(txt_buf, "4x512MB"); strcat(txt_buf, " x 512MB");
break; break;
case 3: case 3:
strcat(txt_buf, "4x768MB"); strcat(txt_buf, " x 768MB");
break; break;
case 4: case 4:
strcat(txt_buf, "4x1GB"); strcat(txt_buf, " x 1GB");
break; break;
default: default:
strcat(txt_buf, "2xUnk"); strcat(txt_buf, " x Unk");
break; break;
} }
s_printf(txt_buf + strlen(txt_buf), " (%d)\n\n", (ram_density.dev1_ch0 & 0x3C) >> 2); s_printf(txt_buf + strlen(txt_buf), " (%d)\n\n", (ram_density.dev1_ch0 & 0x3C) >> 2);
@ -1014,7 +1014,7 @@ static lv_res_t _create_mbox_benchmark(bool sd_bench)
char *txt_buf = (char *)malloc(0x1000); char *txt_buf = (char *)malloc(0x1000);
s_printf(txt_buf, "#FF8000 %s Benchmark#\n[3 x %s raw reads. Cancel: VOL- & VOL+]\n", s_printf(txt_buf, "#FF8000 %s Benchmark#\n[3 x %s raw reads] Abort: VOL- & VOL+\n",
sd_bench ? "SD Card" : "eMMC", sd_bench ? "2GB" : "8GB"); sd_bench ? "SD Card" : "eMMC", sd_bench ? "2GB" : "8GB");
lv_mbox_set_text(mbox, txt_buf); lv_mbox_set_text(mbox, txt_buf);