Skip to content

Add support for DSTwo game listing - #2712

Merged
RocketRobz merged 1 commit into
DS-Homebrew:masterfrom
Arno500:dstwo-slot1-sd
Nov 28, 2026
Merged

RocketRobz merged 1 commit into
DS-Homebrew:masterfrom
Arno500:dstwo-slot1-sd

Conversation

@Arno500

@Arno500 Arno500 commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

What's changed?

Added support for DSTwo SDCard game listing. (running game needs a small patch in nds-bootstrap: DS-Homebrew/nds-bootstrap#1970)

Was AI used?

What was AI used for?

I used Claude to reverse engineer the handshake that the card was waiting for. I also used it to generate more adequate code than my rusty C.

Where have you tested it?

I tested it on my own DSi, using an up-to-date DSTwo (with latest firmware and DSTwo system package)


Pull Request status

  • This PR has been tested using the latest version of devkitARM and libnds.

The DSTWO's SD card is only reachable through its MIPS CPU, which boots when
the DS replays the boot protocol of the DSTWO's own stub. Add dstwoUnlock() to
universal/ and use it for the ALXX (DSTWO) case of twl_flashcardInit() in the
title and Settings apps, so the DSTWO DLDI is only loaded once its handshake
works (its startup() would otherwise loop forever).

The unlock is bounded by a single frame budget, only trusts real replies from
the card, retries once with the same ARM7-first init as twl_flashcardInit(),
and is not repeated after a failure.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@RocketRobz
RocketRobz merged commit 4ff7ac2 into DS-Homebrew:master Nov 28, 2026
@Arno500
Arno500 deleted the dstwo-slot1-sd branch November 29, 2026 19:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants