Skip to content
Snippets Groups Projects
Verified Commit 06461691 authored by João Magalhães's avatar João Magalhães :rocket:
Browse files

chore: handling of libretro state issues

parent b6819e90
No related branches found
No related tags found
1 merge request!31System state save
Pipeline #3287 canceled
......@@ -403,7 +403,10 @@ pub extern "C" fn retro_unserialize(data: *const c_void, size: usize) -> bool {
debugln!("retro_unserialize()");
let instance = unsafe { EMULATOR.as_mut().unwrap() };
let state = unsafe { from_raw_parts(data as *const u8, size) };
StateManager::load(state, instance).unwrap();
if let Err(err) = StateManager::load(state, instance) {
warnln!("Failed to load state: {}", err);
return false;
}
true
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment