From 2d2983fd1cd0d1baa42f2592e7ad7090677e9a4c Mon Sep 17 00:00:00 2001 From: Vivian Lim Date: Tue, 17 Aug 2021 16:16:07 -0700 Subject: [PATCH] fix setting memory maps when emu calls it --- src/retro/wrapper.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/retro/wrapper.rs b/src/retro/wrapper.rs index a043152..46a9d19 100644 --- a/src/retro/wrapper.rs +++ b/src/retro/wrapper.rs @@ -595,7 +595,7 @@ impl StaticCallbacks { } EnvCmd::SetMemoryMaps => { let map = Self::from_void::(data)?.clone(); - handler.set_memory_maps(map) + handler.set_memory_maps(&map)? }, EnvCmd::SetGeometry => { handler.set_geometry(Self::from_void::(data)?)?