hekate/nyx: adjust handling of sdmmc return values

This commit is contained in:
CTCaer
2026-02-22 08:47:22 +02:00
parent 25fda88e46
commit 63c6cfedef
17 changed files with 94 additions and 93 deletions

View File

@@ -137,12 +137,12 @@ static int _hos_eks_rw_try(u8 *buf, bool write)
{
if (!write)
{
if (sdmmc_storage_read(&sd_storage, 0, 1, buf))
if (!sdmmc_storage_read(&sd_storage, 0, 1, buf))
return 0;
}
else
{
if (sdmmc_storage_write(&sd_storage, 0, 1, buf))
if (!sdmmc_storage_write(&sd_storage, 0, 1, buf))
return 0;
}
}