2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-08 21:07:42 +00:00

Tweak Imps

This commit is contained in:
2017-01-26 02:06:18 -08:00
parent da91c921cb
commit 0f3e4b4a38
36 changed files with 1574 additions and 1147 deletions

View File

@@ -509,8 +509,7 @@ void ProjectResourceFactoryBase::AsyncTask::CookComplete()
/* Ready for buffer transaction at this point */
u32 availSz = std::max(0, s32(fr.length()) - s32(x14_resOffset));
x14_resSize = std::min(x14_resSize, availSz);
u8* derp = new u8[x14_resSize];
x10_loadBuffer.reset(std::move(derp));
x10_loadBuffer.reset(new u8[x14_resSize]);
m_bufTransaction = m_parent.m_clientProc.addBufferTransaction(m_cookedPath,
x10_loadBuffer.get(),
x14_resSize, x14_resOffset);