[keel] Update pack for Preloader changes
All checks were successful
Build / build (push) Successful in 2m19s

This commit is contained in:
Gary Talent 2024-02-01 21:07:42 -06:00
parent c55994f67d
commit 59fa39070f

View File

@ -91,9 +91,9 @@ ox::Error preloadObj(
oxRequireM(buff, romFs.read(path));
oxRequireM(obj, keel::readAsset(ts, buff));
if (obj.type()->preloadable) {
oxOutf("preloading {}\n", path);
oxOutf("preloading {} as a {}\n", path, obj.type()->typeName);
// preload
oxRequire(a, pl.startAlloc(ox::sizeOf<GbaPlatSpec>(&obj)));
oxRequire(a, pl.startAlloc(ox::sizeOf<GbaPlatSpec>(&obj), ox::alignOf<GbaPlatSpec>(obj)));
auto const err = ox::preload<GbaPlatSpec, decltype(obj)>(&pl, &obj);
oxReturnError(pl.endAlloc());
oxReturnError(err);