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
1 changed files with 4 additions and 1 deletions

View File

@ -307,7 +307,10 @@ impl StaticCallbacks {
.collect();
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 => {
handler.set_geometry(Self::from_void::<GameGeometry>(data)?.clone())
}