mirror of
https://github.com/Dark98/threeSD.git
synced 2026-12-06 13:27:17 +00:00
Replace file writes with new helper
This commit is contained in:
3 files changed
+4
-30
No files matched your search
@@ -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());
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user