This commit is contained in:
parent
7233da75ea
commit
eed115b287
@ -94,7 +94,7 @@ ox::Error preloadObj(
|
|||||||
oxOutf("preloading {} as a {}\n", path, obj.type()->typeName);
|
oxOutf("preloading {} as a {}\n", path, obj.type()->typeName);
|
||||||
// preload
|
// preload
|
||||||
oxRequire(a, pl.startAlloc(ox::sizeOf<GbaPlatSpec>(&obj), ox::alignOf<GbaPlatSpec>(obj)));
|
oxRequire(a, pl.startAlloc(ox::sizeOf<GbaPlatSpec>(&obj), ox::alignOf<GbaPlatSpec>(obj)));
|
||||||
auto const err = ox::preload<GbaPlatSpec, decltype(obj)>(&pl, &obj);
|
auto const err = ox::preload<GbaPlatSpec, ox::ModelObject>(&pl, &obj);
|
||||||
oxReturnError(pl.endAlloc());
|
oxReturnError(pl.endAlloc());
|
||||||
oxReturnError(err);
|
oxReturnError(err);
|
||||||
keel::PreloadPtr const p{.preloadAddr = static_cast<uint32_t>(a)};
|
keel::PreloadPtr const p{.preloadAddr = static_cast<uint32_t>(a)};
|
||||||
|
Loading…
Reference in New Issue
Block a user