mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-05-24 01:11:39 -04:00
Rework to make use of declared memory map regions.
This commit is contained in:
parent
05690b20ed
commit
1c3e45917c
6 changed files with 20 additions and 10 deletions
|
@ -21,4 +21,13 @@
|
|||
|
||||
#include "portapack_shared_memory.hpp"
|
||||
|
||||
SharedMemory& shared_memory = *reinterpret_cast<SharedMemory*>(0x10088000);
|
||||
#include "memory_map.hpp"
|
||||
|
||||
SharedMemory& shared_memory = *reinterpret_cast<SharedMemory*>(
|
||||
portapack::memory::map::shared_memory.base()
|
||||
);
|
||||
|
||||
static_assert(
|
||||
sizeof(SharedMemory) <= portapack::memory::map::shared_memory.size(),
|
||||
"SharedMemory is too large"
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue