mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-07-27 00:00:07 -06:00
Add support for using the solar sensor without requiring a Boktai ROM (#2221)
* Add a `GBAHeader` struct * Add extra `GBAAddon` entries for the Boktai carts - Each game in the trilogy has a different effect on Lunar Knights (the only commercial DS game to support the solar sensor) * Copy the logo data from the NDS ROM's header to the Boktai stub's header
This commit is contained in:
@ -2142,6 +2142,12 @@ QString EmuInstance::gbaAddonName(int addon)
|
||||
return "Rumble Pak";
|
||||
case GBAAddon_RAMExpansion:
|
||||
return "Memory expansion";
|
||||
case GBAAddon_SolarSensorBoktai1:
|
||||
return "Solar Sensor (Boktai 1)";
|
||||
case GBAAddon_SolarSensorBoktai2:
|
||||
return "Solar Sensor (Boktai 2)";
|
||||
case GBAAddon_SolarSensorBoktai3:
|
||||
return "Solar Sensor (Boktai 3)";
|
||||
}
|
||||
|
||||
return "???";
|
||||
|
@ -320,7 +320,7 @@ MainWindow::MainWindow(int id, EmuInstance* inst, QWidget* parent) :
|
||||
QMenu * submenu = menu->addMenu("Insert add-on cart");
|
||||
QAction *act;
|
||||
|
||||
int addons[] = {GBAAddon_RAMExpansion, GBAAddon_RumblePak, -1};
|
||||
int addons[] = {GBAAddon_RAMExpansion, GBAAddon_RumblePak, GBAAddon_SolarSensorBoktai1, GBAAddon_SolarSensorBoktai2, GBAAddon_SolarSensorBoktai3, -1};
|
||||
for (int i = 0; addons[i] != -1; i++)
|
||||
{
|
||||
int addon = addons[i];
|
||||
|
Reference in New Issue
Block a user