Skip to content

Commit

Permalink
Add 32KB DLDI build of FastVideoDS
Browse files Browse the repository at this point in the history
  • Loading branch information
RocketRobz committed Nov 11, 2024
1 parent 916b666 commit f1e4eba
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 10 deletions.
Binary file modified 7zfile/_nds/TWiLightMenu/apps/FastVideoDS.nds
Binary file not shown.
Binary file added 7zfile/_nds/TWiLightMenu/apps/FastVideoDS32.nds
Binary file not shown.
4 changes: 2 additions & 2 deletions quickmenu/arm9/source/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2913,9 +2913,9 @@ int dsClassicMenu(void) {
} else if (extension(filename[ms().secondaryDevice], {".fv", ".ntrb"})) {
ms().launchType[ms().secondaryDevice] = TWLSettings::EFastVideoLaunch;

ndsToBoot = "sd:/_nds/TWiLightMenu/apps/FastVideoDS.nds";
ndsToBoot = (flashcardFound() && io_dldi_data->driverSize >= 0xF) ? "sd:/_nds/TWiLightMenu/apps/FastVideoDS32.nds" : "sd:/_nds/TWiLightMenu/apps/FastVideoDS.nds";
if (!isDSiMode() || access(ndsToBoot, F_OK) != 0) {
ndsToBoot = "fat:/_nds/TWiLightMenu/apps/FastVideoDS.nds";
ndsToBoot = (io_dldi_data->driverSize >= 0xF) ? "fat:/_nds/TWiLightMenu/apps/FastVideoDS32.nds" : "fat:/_nds/TWiLightMenu/apps/FastVideoDS.nds";
boostVram = true;
}
} else if (extension(filename[ms().secondaryDevice], {".agb", ".gba", ".mb"})) {
Expand Down
4 changes: 2 additions & 2 deletions romsel_aktheme/arm9/source/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2002,9 +2002,9 @@ int akTheme(void) {
} else if (extension(filename, {".fv", ".ntrb"})) {
ms().launchType[ms().secondaryDevice] = TWLSettings::EFastVideoLaunch;

ndsToBoot = "sd:/_nds/TWiLightMenu/apps/FastVideoDS.nds";
ndsToBoot = (flashcardFound() && io_dldi_data->driverSize >= 0xF) ? "sd:/_nds/TWiLightMenu/apps/FastVideoDS32.nds" : "sd:/_nds/TWiLightMenu/apps/FastVideoDS.nds";
if (!isDSiMode() || access(ndsToBoot, F_OK) != 0) {
ndsToBoot = "fat:/_nds/TWiLightMenu/apps/FastVideoDS.nds";
ndsToBoot = (io_dldi_data->driverSize >= 0xF) ? "fat:/_nds/TWiLightMenu/apps/FastVideoDS32.nds" : "fat:/_nds/TWiLightMenu/apps/FastVideoDS.nds";
boostVram = true;
}
} else if (extension(filename, {".agb", ".gba", ".mb"})) {
Expand Down
4 changes: 2 additions & 2 deletions romsel_dsimenutheme/arm9/source/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2022,9 +2022,9 @@ int dsiMenuTheme(void) {
} else if (extension(filename, {".fv", ".ntrb"})) {
ms().launchType[ms().secondaryDevice] = Launch::EFastVideoLaunch;

ndsToBoot = "sd:/_nds/TWiLightMenu/apps/FastVideoDS.nds";
ndsToBoot = (flashcardFound() && io_dldi_data->driverSize >= 0xF) ? "sd:/_nds/TWiLightMenu/apps/FastVideoDS32.nds" : "sd:/_nds/TWiLightMenu/apps/FastVideoDS.nds";
if (!isDSiMode() || access(ndsToBoot, F_OK) != 0) {
ndsToBoot = "fat:/_nds/TWiLightMenu/apps/FastVideoDS.nds";
ndsToBoot = (io_dldi_data->driverSize >= 0xF) ? "fat:/_nds/TWiLightMenu/apps/FastVideoDS32.nds" : "fat:/_nds/TWiLightMenu/apps/FastVideoDS.nds";
boostVram = true;
}
} else if (extension(filename, {".agb", ".gba", ".mb"})) {
Expand Down
4 changes: 2 additions & 2 deletions romsel_r4theme/arm9/source/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2155,9 +2155,9 @@ int r4Theme(void) {
} else if (extension(filename, {".fv", ".ntrb"})) {
ms().launchType[ms().secondaryDevice] = TWLSettings::EFastVideoLaunch;

ndsToBoot = "sd:/_nds/TWiLightMenu/apps/FastVideoDS.nds";
ndsToBoot = (flashcardFound() && io_dldi_data->driverSize >= 0xF) ? "sd:/_nds/TWiLightMenu/apps/FastVideoDS32.nds" : "sd:/_nds/TWiLightMenu/apps/FastVideoDS.nds";
if (!isDSiMode() || access(ndsToBoot, F_OK) != 0) {
ndsToBoot = "fat:/_nds/TWiLightMenu/apps/FastVideoDS.nds";
ndsToBoot = (io_dldi_data->driverSize >= 0xF) ? "fat:/_nds/TWiLightMenu/apps/FastVideoDS32.nds" : "fat:/_nds/TWiLightMenu/apps/FastVideoDS.nds";
boostVram = true;
}
} else if (extension(filename, {".agb", ".gba", ".mb"})) {
Expand Down
4 changes: 2 additions & 2 deletions title/arm9/source/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1065,9 +1065,9 @@ void lastRunROM()
} else if (ms().launchType[ms().previousUsedDevice] == Launch::EFastVideoLaunch) {
if (access(ms().romPath[ms().previousUsedDevice].c_str(), F_OK) != 0) return; // Skip to running TWiLight Menu++

argarray.at(0) = (char*)"sd:/_nds/TWiLightMenu/apps/FastVideoDS.nds";
argarray.at(0) = (char*)((flashcardFound() && io_dldi_data->driverSize >= 0xF) ? "sd:/_nds/TWiLightMenu/apps/FastVideoDS32.nds" : "sd:/_nds/TWiLightMenu/apps/FastVideoDS.nds");
if (!isDSiMode() || access(argarray[0], F_OK) != 0) {
argarray.at(0) = (char*)"fat:/_nds/TWiLightMenu/apps/FastVideoDS.nds";
argarray.at(0) = (char*)((io_dldi_data->driverSize >= 0xF) ? "fat:/_nds/TWiLightMenu/apps/FastVideoDS32.nds" : "fat:/_nds/TWiLightMenu/apps/FastVideoDS.nds");
}
err = runNdsFile(argarray[0], argarray.size(), (const char **)&argarray[0], sys().isRunFromSD(), true, true, false, true, true, false, -1); // Pass video to FastVideoDS as argument
} else if (ms().launchType[ms().previousUsedDevice] == Launch::EStellaDSLaunch) {
Expand Down

0 comments on commit f1e4eba

Please sign in to comment.