Replace file writes with new helper

This commit is contained in:
Pengfei
2021-07-06 16:42:22 +08:00
parent c81db424bb
commit cb6d58b538
3 changed files with 4 additions and 30 deletions
+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());
});
}