Skip to content

Commit

Permalink
Enable Slot-1 access for DS Download Play
Browse files Browse the repository at this point in the history
  • Loading branch information
RocketRobz committed Dec 25, 2023
1 parent 3d05711 commit 2c47c9d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions retail/arm9/source/conf_sd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1020,7 +1020,7 @@ int loadFromSD(configuration* conf, const char *bootstrapPath) {
fclose(donorNdsFile);

if (!conf->gameOnFlashcard && !conf->saveOnFlashcard) {
if (romTid[0] != 'I' && memcmp(romTid, "UZP", 3) != 0) {
if (romTid[0] != 'I' && memcmp(romTid, "UZP", 3) != 0 && memcmp(romTid, "HND", 3) != 0) {
disableSlot1();
} else {
// Initialize card and read header, HGSS IR doesn't work if you don't read the full header
Expand Down Expand Up @@ -1075,8 +1075,8 @@ int loadFromSD(configuration* conf, const char *bootstrapPath) {

sysSetCardOwner(BUS_OWNER_ARM7);

// Leave Slot-1 enabled for IR cartridges and Battle & Get: Pokémon Typing DS
conf->specialCard = (headerData[0xC] == 'I' || memcmp(headerData + 0xC, "UZP", 3) == 0);
// Leave Slot-1 enabled for IR cartridges, Battle & Get: Pokémon Typing DS, and DS Download Play
conf->specialCard = (headerData[0xC] == 'I' || memcmp(headerData + 0xC, "UZP", 3) == 0 || memcmp(romTid, "HND", 3) == 0);
if (conf->specialCard) {
conf->valueBits2 |= BIT(4);
} else {
Expand Down

0 comments on commit 2c47c9d

Please sign in to comment.