mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-14 21:37:52 -07:00
PixelEngine: Use a DirectRead for the token.
No need to call a std::function, and a few games poll this value very often.
This commit is contained in:
parent
017e8050b6
commit
ba1decf7bc
@ -224,8 +224,7 @@ void RegisterMMIO(MMIO::Mapping* mmio, u32 base)
|
||||
}));
|
||||
|
||||
// Token register, readonly.
|
||||
mmio->Register(base | PE_TOKEN_REG, MMIO::ComplexRead<u16>([](u32) { return s_token; }),
|
||||
MMIO::InvalidWrite<u16>());
|
||||
mmio->Register(base | PE_TOKEN_REG, MMIO::DirectRead<u16>(&s_token), MMIO::InvalidWrite<u16>());
|
||||
|
||||
// BBOX registers, readonly and need to update a flag.
|
||||
for (int i = 0; i < 4; ++i)
|
||||
|
Loading…
Reference in New Issue
Block a user