[nostalgia] Add support for asset UUID headers
This commit is contained in:
@@ -79,7 +79,7 @@ static ox::Error doTransformations(foundation::Context *ctx, ox::TypeStore *ts,
|
||||
oxReturnError(tr(ctx, &buff));
|
||||
}
|
||||
// transform FileAddresses
|
||||
oxRequireM(obj, ox::readClaw(ts, buff));
|
||||
oxRequireM(obj, foundation::readAsset(ts, buff));
|
||||
oxReturnError(transformFileAddressesObj(dest, &obj));
|
||||
oxReturnError(ox::writeClaw(&obj).moveTo(&buff));
|
||||
// write file to dest
|
||||
@@ -165,7 +165,7 @@ static ox::Error preloadObj(
|
||||
GbaPreloader *pl, ox::CRStringView path) noexcept {
|
||||
// load file
|
||||
oxRequireM(buff, romFs->read(path));
|
||||
oxRequireM(obj, ox::readClaw(ts, buff));
|
||||
oxRequireM(obj, foundation::readAsset(ts, buff));
|
||||
if (obj.type()->preloadable) {
|
||||
oxOutf("preloading {}\n", path);
|
||||
// preload
|
||||
|
||||
Reference in New Issue
Block a user