From 35d6f7fdca4e12e9484b5b457be18b26ec474339 Mon Sep 17 00:00:00 2001 From: Pk11 Date: Tue, 2 Nov 2021 15:51:05 -0500 Subject: [PATCH] Remove unused non-functional BBDX code from auxspi --- arm9/source/auxspi.cpp | 13 ------------- arm9/source/auxspi.h | 8 -------- 2 files changed, 21 deletions(-) diff --git a/arm9/source/auxspi.cpp b/arm9/source/auxspi.cpp index 13f12e6..e00e550 100644 --- a/arm9/source/auxspi.cpp +++ b/arm9/source/auxspi.cpp @@ -268,10 +268,6 @@ void auxspi_disable_extra(auxspi_extra extra) case AUXSPI_INFRARED: auxspi_disable_infrared_core(); break; - case AUXSPI_BBDX: - // TODO: - auxspi_disable_big_protection(); - break; case AUXSPI_BLUETOOTH: // TODO //auxspi_disable_bluetooth(); @@ -355,15 +351,6 @@ auxspi_extra auxspi_has_extra() u8 size1 = auxspi_save_size_log_2(); if (size1 > 0) return AUXSPI_DEFAULT; - -#if 0 - // EXPERIMENTAL: verify that flash cards do not answer with the same signature! - // Look for BBDX (which always returns "ff" on every command) - uint32 jedec = auxspi_save_jedec_id(); // 9f - //int8 sr = auxspi_save_status_register(); // 05 - if (jedec == 0x00ffffff) - return AUXSPI_BBDX; -#endif // TODO: add support for Pokemon Typing DS (as soon as we figure out how) diff --git a/arm9/source/auxspi.h b/arm9/source/auxspi.h index e60fe3b..9b017c8 100644 --- a/arm9/source/auxspi.h +++ b/arm9/source/auxspi.h @@ -38,20 +38,12 @@ // Games known to use this hardware: // - Personal Trainer: Walking (aka Laufrhytmus DS, Walk With Me, ...) // - Pokemon HeartGold/SoulSilver/Black/White -// AUXSPI_BBDX: A game with what seems to be an extra protection against reading -// out the chip. Exclusively found on Band Brothers DX. // AUXSPI_BLUETOOTH: A game with a Bluetooth transceiver. The only game using this // hardware is Pokemon Typing DS. // -// NOTE: This library does *not* support BBDX (I do have the game, but did not find the -// time to reverse engineer this; besides, a separate homebrew for this game already exists), -// and also *not* BLUETOOTH (the game is Japan-only, and I am from Europe. Plus I can't -// read Japanese. And it is unlikely that this game will ever make it here.) -// typedef enum { AUXSPI_DEFAULT, AUXSPI_INFRARED, - AUXSPI_BBDX, AUXSPI_BLUETOOTH, AUXSPI_FLASH_CARD = 999 } auxspi_extra;