mirror of
https://github.com/Dark98/threeSD.git
synced 2026-07-03 08:39:04 +00:00
Replace file writes with new helper
This commit is contained in:
+1
-12
@@ -293,18 +293,7 @@ bool SDMCImporter::ImportSystemArchive(u64 id,
|
||||
return false;
|
||||
}
|
||||
|
||||
FileUtil::IOFile target(target_path, "wb");
|
||||
if (!target) {
|
||||
LOG_ERROR(Core, "Could not open {}", target_path);
|
||||
return false;
|
||||
}
|
||||
|
||||
if (target.WriteBytes(romfs.data(), romfs.size()) != romfs.size()) {
|
||||
LOG_ERROR(Core, "Failed to write to {}", target_path);
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
return FileUtil::WriteBytesToFile(target_path, romfs.data(), romfs.size());
|
||||
}
|
||||
|
||||
bool SDMCImporter::ImportSysdata(u64 id,
|
||||
|
||||
Reference in New Issue
Block a user