mirror of
https://github.com/AxioDL/nod.git
synced 2025-06-06 22:53:42 +00:00
Image file preallocation
This commit is contained in:
parent
528b5cad0c
commit
39e9cea094
@ -239,6 +239,9 @@ bool DiscBuilderGCN::buildFromDirectory(const SystemChar* dirIn, const SystemCha
|
|||||||
LogModule.report(LogVisor::Error, _S("not enough free disk space for %s"), m_outPath);
|
LogModule.report(LogVisor::Error, _S("not enough free disk space for %s"), m_outPath);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
++m_progressIdx;
|
||||||
|
m_progressCB(m_progressIdx, _S("Preallocating image"), -1);
|
||||||
|
m_fileIO->beginWriteStream(0x57058000 - 1)->write("", 1);
|
||||||
|
|
||||||
PartitionBuilderGCN& pb = static_cast<PartitionBuilderGCN&>(*m_partitions[0]);
|
PartitionBuilderGCN& pb = static_cast<PartitionBuilderGCN&>(*m_partitions[0]);
|
||||||
return pb.buildFromDirectory(dirIn, dolIn, apploaderIn);
|
return pb.buildFromDirectory(dirIn, dolIn, apploaderIn);
|
||||||
|
@ -861,6 +861,9 @@ bool DiscBuilderWii::buildFromDirectory(const SystemChar* dirIn, const SystemCha
|
|||||||
LogModule.report(LogVisor::Error, _S("not enough free disk space for %s"), m_outPath);
|
LogModule.report(LogVisor::Error, _S("not enough free disk space for %s"), m_outPath);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
++m_progressIdx;
|
||||||
|
m_progressCB(m_progressIdx, _S("Preallocating image"), -1);
|
||||||
|
m_fileIO->beginWriteStream(DISC_CAPACITY - 1)->write("", 1);
|
||||||
|
|
||||||
/* Assemble image */
|
/* Assemble image */
|
||||||
filledSz = pb.buildFromDirectory(dirIn, dolIn, apploaderIn, partHeadIn);
|
filledSz = pb.buildFromDirectory(dirIn, dolIn, apploaderIn, partHeadIn);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user