Replace file writes with new helper

This commit is contained in:
Pengfei committed 2021-07-06 16:42:22 +08:00
1 parent c81db424bb
commit cb6d58b538
3 files changed
+4 -30

No files matched your search

+2 -6
View File
@@ -288,12 +288,8 @@ void UtilitiesDialog::RomFSExtractionTool() {
}
const auto& shared_romfs = Core::LoadSharedRomFS(data);
FileUtil::IOFile dest_file(destination.toStdString(), "wb");
if (dest_file.WriteBytes(shared_romfs.data(), shared_romfs.size()) != shared_romfs.size()) {
return false;
}
return true;
return FileUtil::WriteBytesToFile(destination.toStdString(), shared_romfs.data(),
shared_romfs.size());
});
}