mirror of
https://github.com/Dark98/threeSD.git
synced 2026-07-03 00:38:58 +00:00
Replace file writes with new helper
This commit is contained in:
@@ -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