mirror of
https://github.com/RPCS3/rpcs3.git
synced 2024-11-26 04:32:35 +01:00
rsx: fix reading zipped captures
This commit is contained in:
parent
840455b872
commit
06bdaf1fb1
@ -715,18 +715,21 @@ bool Emulator::BootRsxCapture(const std::string& path)
|
||||
|
||||
std::unique_ptr<rsx::frame_capture_data> frame = std::make_unique<rsx::frame_capture_data>();
|
||||
utils::serial load;
|
||||
load.m_file_handler = make_uncompressed_serialization_file_handler(std::move(in_file));
|
||||
load.set_reading_state();
|
||||
|
||||
if (fmt::to_lower(path).ends_with(".gz"))
|
||||
{
|
||||
load.data = unzip(load.data);
|
||||
load.data = unzip(in_file.to_vector<u8>());
|
||||
if (load.data.empty())
|
||||
{
|
||||
sys_log.error("Failed to unzip rsx capture file!");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
load.m_file_handler = make_uncompressed_serialization_file_handler(std::move(in_file));
|
||||
}
|
||||
|
||||
load(*frame);
|
||||
in_file.close();
|
||||
|
Loading…
Reference in New Issue
Block a user