mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-04 15:19:09 +00:00
Don't attach the camera or speaker to the balance board; use zero'd EEPROM for the balance board
This commit is contained in:
parent
4ec40d3d1a
commit
657c7d088a
1 changed files with 7 additions and 3 deletions
|
@ -107,9 +107,10 @@ void Wiimote::Reset()
|
||||||
file.read(reinterpret_cast<char*>(m_eeprom.data.data()), EEPROM_FREE_SIZE);
|
file.read(reinterpret_cast<char*>(m_eeprom.data.data()), EEPROM_FREE_SIZE);
|
||||||
file.close();
|
file.close();
|
||||||
}
|
}
|
||||||
else
|
else if (m_index != WIIMOTE_BALANCE_BOARD)
|
||||||
{
|
{
|
||||||
// Load some default data.
|
// Load some default data.
|
||||||
|
// Note that the balance board starts with all-0 EEPROM, while regular remotes have some data.
|
||||||
|
|
||||||
// IR calibration:
|
// IR calibration:
|
||||||
std::array<u8, 11> ir_calibration = {
|
std::array<u8, 11> ir_calibration = {
|
||||||
|
@ -170,8 +171,11 @@ void Wiimote::Reset()
|
||||||
|
|
||||||
// Initialize i2c bus:
|
// Initialize i2c bus:
|
||||||
m_i2c_bus.Reset();
|
m_i2c_bus.Reset();
|
||||||
|
if (m_index != WIIMOTE_BALANCE_BOARD)
|
||||||
|
{
|
||||||
m_i2c_bus.AddSlave(&m_speaker_logic);
|
m_i2c_bus.AddSlave(&m_speaker_logic);
|
||||||
m_i2c_bus.AddSlave(&m_camera_logic);
|
m_i2c_bus.AddSlave(&m_camera_logic);
|
||||||
|
}
|
||||||
|
|
||||||
// Reset extension connections to NONE:
|
// Reset extension connections to NONE:
|
||||||
m_is_motion_plus_attached = false;
|
m_is_motion_plus_attached = false;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue