Update to v095r05 release.

byuu says:

Changelog:
- GBA: lots of emulation improvements
- PPU PRAM is 16-bits wide
- DMA masks &~1/Half, &~3/Word
- VRAM OBJ 8-bit writes are ignored
- OAM 8-bit writes are ignored
- BGnCNT unused bits are writable*
- BG(0,1)CNT can't set the d13
- BLDALPHA is readable (fixes Donkey Kong Country, etc)
- SNES: lots of code cleanups
- sfc/chip => sfc/coprocessor
- UI: save most recent controller selection

GBA test scores: 1552/1552, 37/38, 1020/1260

(* forgot to add the value to the read function, so endrift's I/O tests
for them will fail. Fixed locally.)

Note: SNES is the only system with multiple controller/expansion port
options, and as such is the only one with a "None" option. Because it's
shared by the controller and expansion port, it ends up sorted first in
the list. This means that on your first run, you'll need to go to Super
Famicom->Controller Port 1 and select "Gamepad", otherwise input won't
work.

Also note that changing the expansion port device requires loading a new
cart. Unlike controllers, you aren't meant to hotplug expansion port
devices.
This commit is contained in:
Tim Allen
2015-11-12 21:15:03 +11:00
parent d1ffd59c29
commit 6d9f43a37b
166 changed files with 913 additions and 1187 deletions

View File

@@ -127,11 +127,22 @@ auto Presentation::updateEmulator() -> void {
for(auto& device : port.device) {
MenuRadioItem item{&menu};
item.setText(device.name).onActivate([=] {
emulatorSettings->set({emulator->information.name, "/", port.name}, device.name);
emulator->connect(port.id, device.id);
});
devices.append(item);
}
if(devices.objectCount() > 1) menu.setVisible();
if(devices.objectCount() > 1) {
string device = emulatorSettings->get({emulator->information.name, "/", port.name});
for(auto object : devices.objects()) {
if(auto item = dynamic_cast<mMenuRadioItem*>(object.data())) {
if(item->text() == device) {
item->setChecked().doActivate();
}
}
}
menu.setVisible();
}
}
systemMenuSeparatorPorts.setVisible(inputPort1.visible() || inputPort2.visible() || inputPort3.visible());