From 59fa39070f0c93be71060afb2584608e90cef84f Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Thu, 1 Feb 2024 21:07:42 -0600 Subject: [PATCH] [keel] Update pack for Preloader changes --- src/olympic/keel/include/keel/pack.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/olympic/keel/include/keel/pack.hpp b/src/olympic/keel/include/keel/pack.hpp index eb8baa52..3f7afe48 100644 --- a/src/olympic/keel/include/keel/pack.hpp +++ b/src/olympic/keel/include/keel/pack.hpp @@ -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(&obj))); + oxRequire(a, pl.startAlloc(ox::sizeOf(&obj), ox::alignOf(obj))); auto const err = ox::preload(&pl, &obj); oxReturnError(pl.endAlloc()); oxReturnError(err);