Merge pull request 'wrapper: invoke handler.set_memory_maps()' (#10) from viv/call-set-memory-maps into matriarch

Reviewed-on: https://git.vvn.space/cinnabon/rustro/pulls/10
This commit is contained in:
Vivian Lim 2021-08-03 08:11:05 +00:00
commit d8d0038643
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())
}