Add PowerSaves for 3DS device support — DS cartridge save backup#5
Draft
Add PowerSaves for 3DS device support — DS cartridge save backup#5
Conversation
PowerSaves for 3DS is a USB HID slot-1 adapter (VID 0x1C1A PID 0x03D5) made by Datel. Despite the 3DS branding, the device's generic NTR and SPI passthroughs work cleanly on DS cartridges, so this driver uses it purely as a save-backup tool for DS carts. What ships: - Driver (src/lib/drivers/powersave-3ds/) — speaks the 64-byte HID protocol, switches between ROM and SPI modes, identifies the cart via NTR chip-ID, validates the on-cart header (CRC + boot-logo), probes the save chip (FLASH via JEDEC, EEPROM via wrap-detection), dumps the save with cart-swap detection at start and end. Protocol ported from github.com/kitlith/powerslaves (MIT). - Shared DS system (src/lib/systems/nds/) — header parsing with CRC-16/MODBUS validation, maker/licensee code lookup (derived from devkitPro/ndstool, GPL-3.0), and a save-only system handler with generic dump-quality sanity checks. - Scanner UI (src/components/wizard/nds-scanner.tsx, src/hooks/use-nds-scanner.ts) — polls for a cart, displays detected game info enriched with No-Intro lookup by serial, runs the dump, and surfaces hashes + .sav download. - Wiring — App.tsx routes nds_save devices to the new scanner; use-connection.ts adds a connect/reconnect path for the device's WebHID filter; devices.ts registers the device. Adjacent changes: - nointro.ts — add nds_save No-Intro system mapping; prefer retail entries over (Beta)/(Proto)/(Demo)/(Sample)/(Unl) tags when multiple entries share a serial, so lookupBySerial returns the cart users actually have. - hashing.ts — formatBytes now scales to MB for ROM-size displays. - types.ts — declare "nds_save" as a known SystemId. Sources cited in THIRD-PARTY-LICENSES: kitlith/powerslaves and devkitPro/ndstool. The README's supported-hardware table and license attribution list are updated accordingly.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PowerSaves for 3DS is a USB HID slot-1 adapter (VID
0x1C1APID0x03D5) made by Datel. Despite the 3DS branding, the device's generic NTR and SPI passthroughs work cleanly on DS cartridges, so this driver uses it purely as a save-backup tool for DS carts.What ships:
src/lib/drivers/powersave-3ds/) — speaks the 64-byte HID protocol, switches between ROM and SPI modes, identifies the cart via NTR chip-ID, validates the on-cart header (CRC + boot-logo), probes the save chip (FLASH via JEDEC, EEPROM via wrap-detection), dumps the save with cart-swap detection at start and end. Protocol ported from kitlith/powerslaves (MIT).src/lib/systems/nds/) — header parsing with CRC-16/MODBUS validation, maker/licensee code lookup (derived from devkitPro/ndstool, GPL-3.0), and a save-only system handler with generic dump-quality sanity checks.src/components/wizard/nds-scanner.tsx, src/hooks/use-nds-scanner.ts) — polls for a cart, displays detected game info enriched with No-Intro lookup by serial, runs the dump, and surfaces hashes +.savdownload.App.tsxroutes nds_save devices to the new scanner; use-connection.ts adds a connect/reconnect path for the device's WebHID filter; devices.ts registers the device.Adjacent changes:
nointro.ts— add "nds_save" No-Intro system mapping; prefer retail entries over (Beta)/(Proto)/(Demo)/(Sample)/(Unl) tags when multiple entries share a serial, so lookupBySerial returns the cart users actually have.hashing.ts— formatBytes now scales to MB for ROM-size displays.types.ts— declare "nds_save" as a known SystemId.