add stringcompare function, fix some returns

This commit is contained in:
Such Meme, Many Skill
2020-04-01 16:37:32 +02:00
parent f438827263
commit 5b32937f8f
2 changed files with 16 additions and 4 deletions

View File

@@ -67,7 +67,7 @@ int connect_part(const char *partition){
system_part = nx_emmc_part_find(&gpt, partition);
if (!system_part) {
gfx_errDisplay("connect_mmc_part", ERR_PART_NOT_FOUND, 0);
return -1;
return 1;
}
return 0;
@@ -81,11 +81,11 @@ int mount_mmc(const char *partition, const int biskeynumb){
se_aes_key_set(9, bis_key[biskeynumb] + 0x10, 0x10);
if (connect_part(partition))
return -1;
return 1;
if ((res = f_mount(&emmc, "emmc:", 1))) {
gfx_errDisplay("mount_mmc", res, 0);
return -1;
return 1;
}
return 0;