From b9fd6ad37d9b2a488411a6128723e26dacdb6307 Mon Sep 17 00:00:00 2001 From: eladash Date: Sun, 24 Jun 2018 12:56:44 +0300 Subject: [PATCH] rsx-capture: unbreak --- rpcs3/Emu/RSX/Capture/rsx_replay.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/rpcs3/Emu/RSX/Capture/rsx_replay.cpp b/rpcs3/Emu/RSX/Capture/rsx_replay.cpp index b3029e311b..adc68ee8c9 100644 --- a/rpcs3/Emu/RSX/Capture/rsx_replay.cpp +++ b/rpcs3/Emu/RSX/Capture/rsx_replay.cpp @@ -17,6 +17,9 @@ namespace rsx fmt::throw_exception("Capture Replay: context alloc failed"); const auto& contextInfo = vm::_ref(contextAddr); + if (sys_rsx_device_map(vm::make_var(0), vm::null, 0x8) != CELL_OK) + fmt::throw_exception("Capture Replay: sys_rsx_device_map failed!"); + if (sys_rsx_memory_allocate(vm::get_addr(&contextInfo.mem_handle), vm::get_addr(&contextInfo.mem_addr), 0x0F900000, 0, 0, 0, 0) != CELL_OK) fmt::throw_exception("Capture Replay: sys_rsx_memory_allocate failed!");