diff --git a/src/nostalgia/tools/pack/pack.hpp b/src/nostalgia/tools/pack/pack.hpp index 390fa335..dd0031d7 100644 --- a/src/nostalgia/tools/pack/pack.hpp +++ b/src/nostalgia/tools/pack/pack.hpp @@ -15,8 +15,6 @@ struct GbaPlatSpec { using PtrType = uint32_t; using size_t = uint32_t; - static constexpr auto PtrSize = 4; - static constexpr auto PtrAlign = 4; static constexpr PtrType RomStart = 0x08000000; [[nodiscard]] @@ -64,27 +62,16 @@ struct GbaPlatSpec { return 8; } - [[nodiscard]] - static constexpr std::size_t alignOf(auto*) noexcept { - return 4; - } - [[nodiscard]] static constexpr std::size_t alignOf(const auto*) noexcept { return 4; } - [[nodiscard]] - static constexpr std::size_t alignOf(const auto &v) noexcept { - ox::AlignmentCatcher c; - oxAssert(model(c.interface(), &v), "Could not get alignment for type"); - return c.biggestAlignment; - } - [[nodiscard]] static constexpr auto correctEndianness(auto v) noexcept { return ox::toLittleEndian(v); } + }; using GbaPreloader = ox::Preloader;