wrapper: invoke handler.set_memory_maps()

This commit is contained in:
Vivian Lim 2019-12-23 21:20:45 -08:00
parent 3a37efea02
commit 243d5b3889

View file

@ -307,7 +307,10 @@ impl StaticCallbacks {
.collect(); .collect();
handler.set_controller_info(controller_info) handler.set_controller_info(controller_info)
} }
// TODO (experimental) EnvCmd::SetMemoryMaps => {}, EnvCmd::SetMemoryMaps => {
let map = Self::from_void::<MemoryMap>(data)?.clone();
handler.set_memory_maps(map)
},
EnvCmd::SetGeometry => { EnvCmd::SetGeometry => {
handler.set_geometry(Self::from_void::<GameGeometry>(data)?.clone()) handler.set_geometry(Self::from_void::<GameGeometry>(data)?.clone())
} }