From fcf3d1f458984b4b586d8bc1c3263c7c9b8de65c Mon Sep 17 00:00:00 2001 From: Naim2000 Date: Fri, 9 Feb 2024 09:23:01 -0500 Subject: [PATCH] accidentally used ES_GetTMDView --- source/wad.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/wad.c b/source/wad.c index b549f36..4c4d032 100644 --- a/source/wad.c +++ b/source/wad.c @@ -289,10 +289,10 @@ static u32 GetSysMenuBootContent(void) return 0; } - ret = ES_GetTMDView(0x100000002LL, (u8*)s_tmd, size); + ret = ES_GetStoredTMD(0x100000002LL, (u8*)s_tmd, size); if (ret < 0) { - printf("Error! ES_GetTMDView failed (ret=%i)\n", ret); + printf("Error! ES_GetStoredTMD failed (ret=%i)\n", ret); free(s_tmd); return 0; } @@ -301,7 +301,7 @@ static u32 GetSysMenuBootContent(void) for (int i = 0; i < p_tmd->num_contents; i++) { - tmd_content* content = p_tmd->contents + i; + tmd_content* content = &p_tmd->contents[i]; if (content->index == p_tmd->boot_index) { cid = content->cid;