hekate/nyx: adjust handling of sdmmc return values

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

No files matched your search

+2 -2
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;
}
}