A reimplementation of Mario Kart Wii's physics engine in C++
Loading...
Searching...
No Matches
Decomp.hh
1#pragma once
2
3#include <Common.hh>
4
5namespace Kinoko::EGG::Decomp {
6
14[[nodiscard]] inline constexpr bool CheckCompressed(const u8 *src) {
15 return src[0] == 'Y' && src[1] == 'a' && src[2] == 'z';
16}
17
19[[nodiscard]] inline constexpr s32 GetExpandSize(const u8 *src) {
20 return CheckCompressed(src) ? form<s32>(&src[4]) : -1;
21}
22
23s32 DecodeSZS(const u8 *src, u8 *dst);
24
25} // namespace Kinoko::EGG::Decomp
This header houses common data types such as our integral types and enums.