From 243d5b38895e66b30339805abc49854c887c362b Mon Sep 17 00:00:00 2001 From: Vivian Lim Date: Mon, 23 Dec 2019 21:20:45 -0800 Subject: [PATCH] wrapper: invoke handler.set_memory_maps() --- src/retro/wrapper.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/retro/wrapper.rs b/src/retro/wrapper.rs index 0152361..d2412d8 100644 --- a/src/retro/wrapper.rs +++ b/src/retro/wrapper.rs @@ -307,7 +307,10 @@ impl StaticCallbacks { .collect(); handler.set_controller_info(controller_info) } - // TODO (experimental) EnvCmd::SetMemoryMaps => {}, + EnvCmd::SetMemoryMaps => { + let map = Self::from_void::(data)?.clone(); + handler.set_memory_maps(map) + }, EnvCmd::SetGeometry => { handler.set_geometry(Self::from_void::(data)?.clone()) }