mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-06-09 07:32:47 -04:00
Remove message_map from Context.
It doesn't belong in a display/rendering context object, it has much broader significance, mostly distributing messages via the M4->M0 IPC mechanism.
This commit is contained in:
parent
d380ffe52b
commit
9cab3c9978
12 changed files with 45 additions and 35 deletions
|
@ -76,8 +76,7 @@ int main(void) {
|
|||
ui::Painter painter;
|
||||
EventDispatcher event_dispatcher { &system_view, painter, context };
|
||||
|
||||
auto& message_handlers = context.message_map();
|
||||
message_handlers.register_handler(Message::ID::Shutdown,
|
||||
EventDispatcher::message_map().register_handler(Message::ID::Shutdown,
|
||||
[&event_dispatcher](const Message* const) {
|
||||
event_dispatcher.request_stop();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue