This commit is contained in:
Joshua Vandaële 2025-05-19 00:41:03 +02:00
parent d1287ea1f0
commit 7732ef0a7c
No known key found for this signature in database
GPG Key ID: 5E8F4E7EDBD390EA
1 changed files with 3 additions and 0 deletions

View File

@ -382,6 +382,9 @@ void Core::SetSIODriver()
GBASIOSetDriver(&static_cast<::GBA*>(m_core->board)->sio, &m_sio_driver);
m_sio_driver.core = this;
m_sio_driver.handlesMode = [](GBASIODriver* driver, GBASIOMode mode) {
return mode == GBA_SIO_JOYBUS;
};
m_sio_driver.init = [](GBASIODriver* driver) {
static_cast<SIODriver*>(driver)->core->m_link_enabled = true;
return true;