diff options
author | 2023-04-11 22:53:35 +1000 | |
---|---|---|
committer | 2023-04-11 22:53:35 +1000 | |
commit | c4a9a22eb192eacdce350549c0e5523a7994ce83 (patch) | |
tree | f28aa3117955d823564b69309bc31d3825dfbf16 /src/emu/emumem_het.h | |
parent | 62a7d7d6f425e14f9de3ef1ec50c6afb7d498ac8 (diff) |
Encourage use of read/write delegate creator helpers (demo on Game Boy cartridges). (#11091)
This makes it simpler to install read-write handlers, as you don't need to think about the "smo" suffixes.
Diffstat (limited to 'src/emu/emumem_het.h')
-rw-r--r-- | src/emu/emumem_het.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/emu/emumem_het.h b/src/emu/emumem_het.h index 8b13d1ed743..97650c6cbe3 100644 --- a/src/emu/emumem_het.h +++ b/src/emu/emumem_het.h @@ -12,7 +12,7 @@ template<int Width, int AddrShift> class handler_entry_read_tap : public handler_entry_read_passthrough<Width, AddrShift> { public: - using uX = typename emu::detail::handler_entry_size<Width>::uX; + using uX = emu::detail::handler_entry_size_t<Width>; handler_entry_read_tap(address_space *space, emu::detail::memory_passthrough_handler_impl &mph, std::string name, std::function<void (offs_t offset, uX &data, uX mem_mask)> tap) : handler_entry_read_passthrough<Width, AddrShift>(space, mph, 4), m_name(name), m_tap(std::move(tap)) {} ~handler_entry_read_tap() = default; @@ -36,7 +36,7 @@ protected: template<int Width, int AddrShift> class handler_entry_write_tap : public handler_entry_write_passthrough<Width, AddrShift> { public: - using uX = typename emu::detail::handler_entry_size<Width>::uX; + using uX = emu::detail::handler_entry_size_t<Width>; handler_entry_write_tap(address_space *space, emu::detail::memory_passthrough_handler_impl &mph, std::string name, std::function<void (offs_t offset, uX &data, uX mem_mask)> tap) : handler_entry_write_passthrough<Width, AddrShift>(space, mph, 4), m_name(name), m_tap(std::move(tap)) {} ~handler_entry_write_tap() = default; |