From 2e01f4fb2d4652d0e12cad20d60176dc395758d6 Mon Sep 17 00:00:00 2001 From: RocketRobz Date: Fri, 1 Dec 2023 19:19:41 -0700 Subject: [PATCH] Use `my_sdmmc_get_cid` instead of `sdmmc_nand_cid` --- quickmenu/arm7/source/main.c | 3 ++- title/arm7/source/main.c | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/quickmenu/arm7/source/main.c b/quickmenu/arm7/source/main.c index 48250c564d..87eef3d39b 100644 --- a/quickmenu/arm7/source/main.c +++ b/quickmenu/arm7/source/main.c @@ -37,6 +37,7 @@ void my_touchInit(); void my_installSystemFIFO(void); +void my_sdmmc_get_cid(int devicenumber, u32 *cid); u8 my_i2cReadRegister(u8 device, u8 reg); u8 my_i2cWriteRegister(u8 device, u8 reg, u8 data); @@ -348,7 +349,7 @@ int main() { } if (*(u32*)(0x2FFFD0C) == 0x454D4D43) { - sdmmc_nand_cid((u32*)0x2FFD7BC); // Get eMMC CID + my_sdmmc_get_cid(true, (u32*)0x2FFD7BC); // Get eMMC CID *(u32*)(0x2FFFD0C) = 0; } swiWaitForVBlank(); diff --git a/title/arm7/source/main.c b/title/arm7/source/main.c index 417f4f3b7b..43fbb7497f 100644 --- a/title/arm7/source/main.c +++ b/title/arm7/source/main.c @@ -37,6 +37,7 @@ void my_touchInit(); void my_installSystemFIFO(void); +void my_sdmmc_get_cid(int devicenumber, u32 *cid); u8 my_i2cReadRegister(u8 device, u8 reg); u8 my_i2cWriteRegister(u8 device, u8 reg, u8 data); @@ -353,7 +354,7 @@ int main() { } if (*(u32*)(0x2FFFD0C) == 0x454D4D43) { - sdmmc_nand_cid((u32*)0x2FFD7BC); // Get eMMC CID + my_sdmmc_get_cid(true, (u32*)0x2FFD7BC); // Get eMMC CID *(u32*)(0x2FFFD0C) = 0; }