nba-emu / NanoBoyAdvance

A cycle-accurate Nintendo Game Boy Advance emulator.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Boktai: Solar sensor is not working on current master

raphaelr opened this issue · comments

Steps to reproduce:

  1. Load a Boktai ROM and start a new game
  2. Adjust the solar level using Config -> System -> Solar sensor level
  3. The "Current level:" label updates, but nothing changes in-game

core is null here:

if(core) {
auto solar_sensor = core->GetROM().GetGPIODevice<nba::SolarSensor>();
if(solar_sensor) {
solar_sensor->SetLightLevel(level);
}
}

Oh, that's a regression from a recent refactor. I should be able to push a fix tomorrow/later today.

@raphaelr this should be fixed now in the latest development build. Let me know if it's fixed for you. In that case I will release a minor version with the fix.

I tested it, and it works again. Thanks.