mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-23 02:39:56 +00:00
HW: Pass System to MMIO handlers.
This commit is contained in:
parent
0ef6d30a0d
commit
0a6fdb9c13
17 changed files with 215 additions and 199 deletions
|
@ -121,12 +121,12 @@ TEST_F(MappingTest, ReadWriteComplex)
|
|||
{
|
||||
bool read_called = false, write_called = false;
|
||||
|
||||
m_mapping->Register(0x0C001234, MMIO::ComplexRead<u8>([&read_called](u32 addr) {
|
||||
m_mapping->Register(0x0C001234, MMIO::ComplexRead<u8>([&read_called](Core::System&, u32 addr) {
|
||||
EXPECT_EQ(0x0C001234u, addr);
|
||||
read_called = true;
|
||||
return 0x12;
|
||||
}),
|
||||
MMIO::ComplexWrite<u8>([&write_called](u32 addr, u8 val) {
|
||||
MMIO::ComplexWrite<u8>([&write_called](Core::System&, u32 addr, u8 val) {
|
||||
EXPECT_EQ(0x0C001234u, addr);
|
||||
EXPECT_EQ(0x34, val);
|
||||
write_called = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue