Skip to content

Commit

Permalink
Add support for SuperCard/3in1 Plus
Browse files Browse the repository at this point in the history
* Add new error message for detecting if run on DSi/3DS consoles as this
program isn't really compatible with those consoles for obvious reasons.
* Add initial support for SuperCard Lite (and possibly other SuperCard
varients). Note that saves are not currently functional though.
* Add back initial support for EZ Flash 3 in 1 Plus. Note that NorFlash
commands appear to not be working at the moment. RAM mode untested. New
code added for detecting 3 in 1 Plus when detecting max allowed file
size. This should allow writing 64MB gba roms to 3 in 1 Plus...once
NorFlash stuff is fixed that is. :P
* Tested as working properly with regular EZ Flash 3 in 1 carts.
* Note that version 0.58 already exists but we do not have source code
for it. (source was released only for 0.57. Rudolph could not find the
last version's source code unfortunately. This is why 3 in 1 Plus
support is incomplete. (it at least detects it now which original 0.57
could not do and will in theory allow writing 64MB GBA roms once
NorFlash stuff is fixed for that cart)
  • Loading branch information
ApacheThunder committed May 18, 2024
1 parent 6c10c47 commit 65962d1
Show file tree
Hide file tree
Showing 15 changed files with 908 additions and 1,092 deletions.
17 changes: 0 additions & 17 deletions arm7/source/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -98,23 +98,6 @@ void fifoCheckHandler() {
prepairReset();
}
}


/*u32 fifo;
if(!(REG_IPC_FIFO_CR & IPC_FIFO_RECV_EMPTY)) {
fifo = REG_IPC_FIFO_RX;
if(fifo == IPC_CMD_GBAMODE)gbaMode();
if(fifo == IPC_CMD_SLOT2)prepairReset();
if(fifo == IPC_CMD_TURNOFF) {
PM_SetControl(1<<6);
while(1);
}
if(fifo == IPC_CMD_SR_R4TF)ret_menu7_R4();
if(fifo == IPC_CMD_SR_DLMS)LinkReset_ARM7();
if(fifo == IPC_CMD_SR_GEN)ret_menu7_Gen();
if(fifo == IPC_CMD_SR_MSE)ret_menu7_mse();
}*/
}

void VblankHandler(void) {
Expand Down
6 changes: 2 additions & 4 deletions arm9/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ STATICLIBS :=
#---------------------------------------------------------------------------------
# $(ARCH) $(INCLUDE) -DARM9 -D_LegacyCardLib
ARCH := -mthumb -mthumb-interwork -march=armv5te -mtune=arm946e-s
CFLAGS := -g -Wall -O2 \
CFLAGS := -g -Wall -Wno-format-overflow -O2 \
$(ARCH) $(INCLUDE) -DARM9
CXXFLAGS := $(CFLAGS) -fno-rtti -fno-exceptions
ASFLAGS := -g $(ARCH)
Expand All @@ -34,9 +34,7 @@ LDFLAGS = -specs=ds_arm9.specs -g $(ARCH) -Wl,-Map,$(notdir $*.map)
#---------------------------------------------------------------------------------
# any extra libraries we wish to link with the project
#---------------------------------------------------------------------------------
# LIBS := -lfat -ldswifi9 -lnds9
# disable Wifi lib. It's not being used in this build
LIBS := -lfat -lnds329
LIBS := -lfat -lnds9

#---------------------------------------------------------------------------------
# list of directories containing libraries, this must be the top level containing
Expand Down
68 changes: 0 additions & 68 deletions arm9/include/dsCard.h

This file was deleted.

118 changes: 0 additions & 118 deletions arm9/source/cache.h

This file was deleted.

Loading

0 comments on commit 65962d1

Please sign in to comment.