Skip to content

Commit

Permalink
Switch to newer nesDS version, and add DSi build of A5200DS
Browse files Browse the repository at this point in the history
  • Loading branch information
RocketRobz committed Nov 17, 2023
1 parent 83cb23e commit 2a82763
Show file tree
Hide file tree
Showing 7 changed files with 25 additions and 9 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,12 +101,16 @@ jobs:
curl -LO https://github.com/wavemotion-dave/A8DS/releases/latest/download/A8DS.nds
curl -LO https://github.com/wavemotion-dave/StellaDS/releases/latest/download/StellaDS.nds
curl -LO https://github.com/wavemotion-dave/A5200DS/releases/latest/download/A5200DS.nds
curl -LO https://github.com/wavemotion-dave/A5200DS/releases/latest/download/A5200DSi.nds
curl -LO https://github.com/wavemotion-dave/A7800DS/releases/latest/download/A7800DS.nds
curl -LO https://github.com/wavemotion-dave/NINTV-DS/releases/latest/download/NINTV-DS.nds
curl -LO https://github.com/wavemotion-dave/ColecoDS/releases/latest/download/ColecoDS.nds
curl -LO https://github.com/FluBBaOfWard/S8DS/releases/latest/download/S8DS.zip
curl -LO https://bitbucket.org/Coto88/snemulds/raw/33f5f469b6e6c19cb3e1be9259b407832fce42b9/release/arm7dldi-ntr/SNEmulDS.nds
curl -LO https://bitbucket.org/Coto88/snemulds/raw/33f5f469b6e6c19cb3e1be9259b407832fce42b9/release/arm7dldi-twl/SNEmulDS.srl
curl -LO https://github.com/DS-Homebrew/NesDS/releases/latest/download/nesDS.7z
7z x nesDS.7z nesDS/nesDS.nds
rm nesDS.7z
curl -LO https://github.com/FluBBaOfWard/S8DS/releases/latest/download/S8DS.zip
7z x S8DS.zip S8DS.nds
rm S8DS.zip
curl -LO https://github.com/FluBBaOfWard/NGPDS/releases/latest/download/NGPDS.zip
Expand Down
Binary file removed 7zfile/_nds/TWiLightMenu/emulators/nesds.nds
Binary file not shown.
Binary file removed 7zfile/_nds/TWiLightMenu/emulators/nestwl.nds
Binary file not shown.
7 changes: 5 additions & 2 deletions quickmenu/arm9/source/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3205,7 +3205,10 @@ int dsClassicMenu(void) {
} else if (extension(filename[ms().secondaryDevice], ".a52")) {
ms().launchType[ms().secondaryDevice] = TWLSettings::EA5200DSLaunch;

ndsToBoot = "sd:/_nds/TWiLightMenu/emulators/A5200DS.nds";
ndsToBoot = "sd:/_nds/TWiLightMenu/emulators/A5200DSi.nds";
if (isDSiMode() && access(ndsToBoot, F_OK) != 0) {
ndsToBoot = "fat:/_nds/TWiLightMenu/emulators/A5200DSi.nds";
}
if (!isDSiMode() || access(ndsToBoot, F_OK) != 0) {
ndsToBoot = "fat:/_nds/TWiLightMenu/emulators/A5200DS.nds";
boostVram = true;
Expand Down Expand Up @@ -3247,7 +3250,7 @@ int dsClassicMenu(void) {
} else if (extension(filename[ms().secondaryDevice], ".nes") || extension(filename[ms().secondaryDevice], ".fds")) {
ms().launchType[ms().secondaryDevice] = TWLSettings::ENESDSLaunch;

ndsToBoot = (ms().secondaryDevice ? "sd:/_nds/TWiLightMenu/emulators/nesds.nds" : "sd:/_nds/TWiLightMenu/emulators/nestwl.nds");
ndsToBoot = "sd:/_nds/TWiLightMenu/emulators/nesds.nds";
if (!isDSiMode() || access(ndsToBoot, F_OK) != 0) {
ndsToBoot = "fat:/_nds/TWiLightMenu/emulators/nesds.nds";
boostVram = true;
Expand Down
7 changes: 5 additions & 2 deletions romsel_dsimenutheme/arm9/source/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2298,7 +2298,10 @@ int dsiMenuTheme(void) {
} else if (extension(filename, {".a52"})) {
ms().launchType[ms().secondaryDevice] = Launch::EA5200DSLaunch;

ndsToBoot = "sd:/_nds/TWiLightMenu/emulators/A5200DS.nds";
ndsToBoot = "sd:/_nds/TWiLightMenu/emulators/A5200DSi.nds";
if (isDSiMode() && access(ndsToBoot, F_OK) != 0) {
ndsToBoot = "fat:/_nds/TWiLightMenu/emulators/A5200DSi.nds";
}
if (!isDSiMode() || access(ndsToBoot, F_OK) != 0) {
ndsToBoot = "fat:/_nds/TWiLightMenu/emulators/A5200DS.nds";
boostVram = true;
Expand Down Expand Up @@ -2339,7 +2342,7 @@ int dsiMenuTheme(void) {
} else if (extension(filename, {".nes", ".fds"})) {
ms().launchType[ms().secondaryDevice] = Launch::ENESDSLaunch;

ndsToBoot = (ms().secondaryDevice ? "sd:/_nds/TWiLightMenu/emulators/nesds.nds" : "sd:/_nds/TWiLightMenu/emulators/nestwl.nds");
ndsToBoot = "sd:/_nds/TWiLightMenu/emulators/nesds.nds";
if (!isDSiMode() || access(ndsToBoot, F_OK) != 0) {
ndsToBoot = "fat:/_nds/TWiLightMenu/emulators/nesds.nds";
boostVram = true;
Expand Down
7 changes: 5 additions & 2 deletions romsel_r4theme/arm9/source/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2307,7 +2307,10 @@ int r4Theme(void) {
} else if (extension(filename, {".a52"})) {
ms().launchType[ms().secondaryDevice] = TWLSettings::EA5200DSLaunch;

ndsToBoot = "sd:/_nds/TWiLightMenu/emulators/A5200DS.nds";
ndsToBoot = "sd:/_nds/TWiLightMenu/emulators/A5200DSi.nds";
if (isDSiMode() && access(ndsToBoot, F_OK) != 0) {
ndsToBoot = "fat:/_nds/TWiLightMenu/emulators/A5200DSi.nds";
}
if (!isDSiMode() || access(ndsToBoot, F_OK) != 0) {
ndsToBoot = "fat:/_nds/TWiLightMenu/emulators/A5200DS.nds";
boostVram = true;
Expand Down Expand Up @@ -2348,7 +2351,7 @@ int r4Theme(void) {
} else if (extension(filename, {".nes", ".fds"})) {
ms().launchType[ms().secondaryDevice] = TWLSettings::ENESDSLaunch;

ndsToBoot = (ms().secondaryDevice ? "sd:/_nds/TWiLightMenu/emulators/nesds.nds" : "sd:/_nds/TWiLightMenu/emulators/nestwl.nds");
ndsToBoot = "sd:/_nds/TWiLightMenu/emulators/nesds.nds";
if (!isDSiMode() || access(ndsToBoot, F_OK) != 0) {
ndsToBoot = "fat:/_nds/TWiLightMenu/emulators/nesds.nds";
boostVram = true;
Expand Down
7 changes: 5 additions & 2 deletions title/arm9/source/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1001,7 +1001,7 @@ void lastRunROM()
} else if (ms().launchType[ms().previousUsedDevice] == Launch::ENESDSLaunch) {
if (access(ms().romPath[ms().previousUsedDevice].c_str(), F_OK) != 0) return; // Skip to running TWiLight Menu++

argarray.at(0) = (char*)"sd:/_nds/TWiLightMenu/emulators/nestwl.nds";
argarray.at(0) = (char*)"sd:/_nds/TWiLightMenu/emulators/nesds.nds";
if (!isDSiMode() || access(argarray[0], F_OK) != 0) {
argarray.at(0) = (char*)"fat:/_nds/TWiLightMenu/emulators/nesds.nds";
}
Expand Down Expand Up @@ -1144,7 +1144,10 @@ void lastRunROM()
} else if (ms().launchType[ms().previousUsedDevice] == Launch::EA5200DSLaunch) {
if (access(ms().romPath[ms().previousUsedDevice].c_str(), F_OK) != 0) return; // Skip to running TWiLight Menu++

argarray.at(0) = (char*)"sd:/_nds/TWiLightMenu/emulators/A5200DS.nds";
argarray.at(0) = (char*)"sd:/_nds/TWiLightMenu/emulators/A5200DSi.nds";
if (isDSiMode() && access(argarray[0], F_OK) != 0) {
argarray.at(0) = (char*)"fat:/_nds/TWiLightMenu/emulators/A5200DSi.nds";
}
if (!isDSiMode() || access(argarray[0], F_OK) != 0) {
argarray.at(0) = (char*)"fat:/_nds/TWiLightMenu/emulators/A5200DS.nds";
}
Expand Down

0 comments on commit 2a82763

Please sign in to comment.