[keel] Update for Ox changes

This commit is contained in:
Gary Talent 2023-06-08 22:13:38 -05:00
parent 5a021043f4
commit 7c3aaf99c2

View File

@ -98,10 +98,10 @@ ox::Error preloadObj(
oxReturnError(pl->endAlloc());
oxReturnError(err);
const keel::PreloadPtr p{.preloadAddr = static_cast<uint32_t>(a)};
oxReturnError(ox::writeMC(&p).moveTo(&buff));
oxReturnError(ox::writeMC(p).moveTo(&buff));
} else {
// strip the Claw header (it is not needed after preloading) and write back out to dest fs
oxReturnError(ox::writeMC(&obj).moveTo(&buff));
oxReturnError(ox::writeMC(obj).moveTo(&buff));
}
oxReturnError(romFs->write(path, buff.data(), buff.size()));
return {};