Don't close moved file
This commit is contained in:
committed by
Elad Ashkenazi
parent
06bdaf1fb1
commit
71f497947e
@@ -720,6 +720,8 @@ bool Emulator::BootRsxCapture(const std::string& path)
|
|||||||
if (fmt::to_lower(path).ends_with(".gz"))
|
if (fmt::to_lower(path).ends_with(".gz"))
|
||||||
{
|
{
|
||||||
load.data = unzip(in_file.to_vector<u8>());
|
load.data = unzip(in_file.to_vector<u8>());
|
||||||
|
in_file.close();
|
||||||
|
|
||||||
if (load.data.empty())
|
if (load.data.empty())
|
||||||
{
|
{
|
||||||
sys_log.error("Failed to unzip rsx capture file!");
|
sys_log.error("Failed to unzip rsx capture file!");
|
||||||
@@ -732,7 +734,6 @@ bool Emulator::BootRsxCapture(const std::string& path)
|
|||||||
}
|
}
|
||||||
|
|
||||||
load(*frame);
|
load(*frame);
|
||||||
in_file.close();
|
|
||||||
|
|
||||||
if (frame->magic != rsx::c_fc_magic)
|
if (frame->magic != rsx::c_fc_magic)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user