[nostalgia/tools/pack] Update for GbaPlatSpec for preloader cleanup
This commit is contained in:
parent
317e714373
commit
e9965a63ce
@ -15,8 +15,6 @@ struct GbaPlatSpec {
|
|||||||
using PtrType = uint32_t;
|
using PtrType = uint32_t;
|
||||||
using size_t = uint32_t;
|
using size_t = uint32_t;
|
||||||
|
|
||||||
static constexpr auto PtrSize = 4;
|
|
||||||
static constexpr auto PtrAlign = 4;
|
|
||||||
static constexpr PtrType RomStart = 0x08000000;
|
static constexpr PtrType RomStart = 0x08000000;
|
||||||
|
|
||||||
[[nodiscard]]
|
[[nodiscard]]
|
||||||
@ -64,27 +62,16 @@ struct GbaPlatSpec {
|
|||||||
return 8;
|
return 8;
|
||||||
}
|
}
|
||||||
|
|
||||||
[[nodiscard]]
|
|
||||||
static constexpr std::size_t alignOf(auto*) noexcept {
|
|
||||||
return 4;
|
|
||||||
}
|
|
||||||
|
|
||||||
[[nodiscard]]
|
[[nodiscard]]
|
||||||
static constexpr std::size_t alignOf(const auto*) noexcept {
|
static constexpr std::size_t alignOf(const auto*) noexcept {
|
||||||
return 4;
|
return 4;
|
||||||
}
|
}
|
||||||
|
|
||||||
[[nodiscard]]
|
|
||||||
static constexpr std::size_t alignOf(const auto &v) noexcept {
|
|
||||||
ox::AlignmentCatcher<GbaPlatSpec> c;
|
|
||||||
oxAssert(model(c.interface(), &v), "Could not get alignment for type");
|
|
||||||
return c.biggestAlignment;
|
|
||||||
}
|
|
||||||
|
|
||||||
[[nodiscard]]
|
[[nodiscard]]
|
||||||
static constexpr auto correctEndianness(auto v) noexcept {
|
static constexpr auto correctEndianness(auto v) noexcept {
|
||||||
return ox::toLittleEndian(v);
|
return ox::toLittleEndian(v);
|
||||||
}
|
}
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
using GbaPreloader = ox::Preloader<GbaPlatSpec>;
|
using GbaPreloader = ox::Preloader<GbaPlatSpec>;
|
||||||
|
Loading…
Reference in New Issue
Block a user