allow for TMDs which are larger than needed

quick hack fix to allow DSiWare games to work again, proper fix is to remove the extra 0x700 bytes of certificates in the tmd db which aren't needed
This commit is contained in:
CasualPokePlayer 2023-09-28 16:02:00 -07:00
parent 15d663f68d
commit a1ec56d748
2 changed files with 2 additions and 2 deletions
Assets/dll
waterbox/melon

Binary file not shown.

View File

@ -72,9 +72,9 @@ const char* InitNAND(bool clearNand, bool dsiWare)
return "Failed to obtain TMD!";
}
if (tmdData->second != sizeof(DSi_TMD::TitleMetadata))
if (tmdData->second < sizeof(DSi_TMD::TitleMetadata))
{
return "TMD is not the correct size!";
return "TMD is too small!";
}
DSi_TMD::TitleMetadata tmd;