fix setting memory maps when emu calls it

This commit is contained in:
Vivian Lim 2021-08-17 16:16:07 -07:00
parent cf076409f0
commit 2d2983fd1c
1 changed files with 1 additions and 1 deletions

View File

@ -595,7 +595,7 @@ impl StaticCallbacks {
} }
EnvCmd::SetMemoryMaps => { EnvCmd::SetMemoryMaps => {
let map = Self::from_void::<MemoryMap>(data)?.clone(); let map = Self::from_void::<MemoryMap>(data)?.clone();
handler.set_memory_maps(map) handler.set_memory_maps(&map)?
}, },
EnvCmd::SetGeometry => { EnvCmd::SetGeometry => {
handler.set_geometry(Self::from_void::<GameGeometry>(data)?)? handler.set_geometry(Self::from_void::<GameGeometry>(data)?)?