From 71f497947efd3efd4f70f238d540b7989b302268 Mon Sep 17 00:00:00 2001 From: Megamouse Date: Fri, 10 Nov 2023 10:30:10 +0100 Subject: [PATCH] Don't close moved file --- rpcs3/Emu/System.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rpcs3/Emu/System.cpp b/rpcs3/Emu/System.cpp index eb3734ffc6..1ce805d858 100644 --- a/rpcs3/Emu/System.cpp +++ b/rpcs3/Emu/System.cpp @@ -720,6 +720,8 @@ bool Emulator::BootRsxCapture(const std::string& path) if (fmt::to_lower(path).ends_with(".gz")) { load.data = unzip(in_file.to_vector()); + in_file.close(); + if (load.data.empty()) { sys_log.error("Failed to unzip rsx capture file!"); @@ -732,7 +734,6 @@ bool Emulator::BootRsxCapture(const std::string& path) } load(*frame); - in_file.close(); if (frame->magic != rsx::c_fc_magic) {