Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
70 changes: 70 additions & 0 deletions THIRD-PARTY-LICENSES
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,19 @@ open-source projects. Their original license texts are reproduced below.

================================================================================

ndsplus
https://github.com/Thulinma/ndsplus

EMS NDS Adapter+ protocol commands, save type detection, and bulk transfer
sequences in src/lib/drivers/ems-nds/ were derived from the ndsplus Linux
command-line tool by Thulinma.

License: GNU General Public License v3.0

See LICENSE in this repository (same license applies to nabu as a whole).

================================================================================

FlashGBX
https://github.com/lesserkuma/FlashGBX

Expand Down Expand Up @@ -46,6 +59,63 @@ SOFTWARE.

================================================================================

powerslaves
https://github.com/kitlith/powerslaves

PowerSaves 3DS HID protocol (packet framing, opcodes, mode-switch sequence,
SPI/NTR passthrough) in src/lib/drivers/powersave-3ds/ was ported from the
powerslaves C library.

License: MIT

Copyright (c) 2017 kitlith

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

================================================================================

ndsplus
https://github.com/Thulinma/ndsplus

EMS NDS Adapter+ USB protocol commands and save read/write sequences in
src/lib/drivers/ems-nds/ were implemented from the ndsplus reference
implementation by Thulinma.

License: GNU General Public License v3.0

See LICENSE in this repository (same license applies to nabu as a whole).

================================================================================

ndstool (devkitPro)
https://github.com/devkitPro/ndstool

NDS maker-code → publisher name lookup table in
src/lib/systems/nds/nds-maker-codes.ts was derived from ndstool's
ndscodes.cpp.

License: GNU General Public License v3.0

See LICENSE in this repository (same license applies to nabu as a whole).

================================================================================

AmiiboAPI
https://github.com/N3evin/AmiiboAPI

Expand Down
18 changes: 17 additions & 1 deletion src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ import { GBSystemHandler } from "@/lib/systems/gb/gb-system-handler";
import { GBASystemHandler } from "@/lib/systems/gba/gba-system-handler";
import { AmiiboScanner } from "@/components/wizard/amiibo-scanner";
import { InfinityScanner } from "@/components/wizard/infinity-scanner";
import { NDSScanner } from "@/components/wizard/nds-scanner";
import type { InfinityDriver } from "@/lib/drivers/infinity/infinity-driver";
import type { NDSDeviceDriver } from "@/lib/systems/nds/nds-header";
import type {
DeviceDriver,
DeviceInfo,
Expand Down Expand Up @@ -142,7 +144,10 @@ function App() {
(_driver: DeviceDriver, _info: DeviceInfo) => {
// Scanner-based devices handle detection in their own polling loop
const isScanner = _driver.capabilities.some(
(c) => c.systemId === "amiibo" || c.systemId === "disney-infinity",
(c) =>
c.systemId === "amiibo" ||
c.systemId === "disney-infinity" ||
c.systemId === "nds_save",
);
if (!isScanner) autoDetectSystem(_driver);
},
Expand Down Expand Up @@ -176,6 +181,9 @@ function App() {
connection.driver?.capabilities.some(
(c) => c.systemId === "disney-infinity",
) ?? false;
const isNDSSaveDevice =
connection.driver?.capabilities.some((c) => c.systemId === "nds_save") ??
false;

const badgeState = useMemo(() => {
if (dumpJob.state !== "idle") return dumpJob.state;
Expand Down Expand Up @@ -331,6 +339,14 @@ function App() {
onDisconnect={handleDisconnect}
log={log}
/>
) : isNDSSaveDevice ? (
<NDSScanner
driver={connection.driver! as NDSDeviceDriver}
deviceInfo={connection.deviceInfo}
onDisconnect={handleDisconnect}
log={log}
nointroDb={nointro.getDb("nds_save")}
/>
) : (
<div className="flex flex-col gap-6">
<ConfigureStep
Expand Down
Loading