Skip to content

Commit

Permalink
Check ioType for NRIO in case if friendly name check fails
Browse files Browse the repository at this point in the history
  • Loading branch information
RocketRobz committed Nov 26, 2024
1 parent 759b981 commit fe4cf3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion title/arm9/source/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1819,7 +1819,7 @@ int titleMode(void)
4: Run temporary DSiWare
*/

if ((strcmp(io_dldi_data->friendlyName, "NAND FLASH CARD LIBFATNRIO") == 0) && (*(u32*)0x02FF8000 != 0x53535A4C)) {
if (((strcmp(io_dldi_data->friendlyName, "NAND FLASH CARD LIBFATNRIO") == 0) || (io_dldi_data->ioInterface.ioType == 0x4F49524E)) && (*(u32*)0x02FF8000 != 0x53535A4C)) {
FILE* file = fopen("nitro:/dldi/nrio.lz77", "rb");
fread((void*)0x02FF8004, 1, 0x3FFC, file);
fclose(file);
Expand Down

0 comments on commit fe4cf3b

Please sign in to comment.