mirror of
https://github.com/zeldaret/ss
synced 2026-05-24 15:20:58 -04:00
26af4db82d
* update from dtk-template and start work towards using clangd * include <a> -> "a" * Update build.yml * remove/add non-trivial class in union warning
28 lines
572 B
C++
28 lines
572 B
C++
#ifndef NW4R_UT_BINARY_FILE_FORMAT_H
|
|
#define NW4R_UT_BINARY_FILE_FORMAT_H
|
|
#include "nw4r/types_nw4r.h"
|
|
|
|
namespace nw4r {
|
|
namespace ut {
|
|
|
|
struct BinaryBlockHeader {
|
|
u32 magic; // at 0x0
|
|
u32 length; // at 0x4
|
|
};
|
|
|
|
struct BinaryFileHeader {
|
|
u32 magic; // at 0x0
|
|
u16 byteOrder; // at 0x4
|
|
u16 version; // at 0x6
|
|
u32 fileSize; // at 0x8
|
|
u16 headerSize; // at 0xC
|
|
u16 numBlocks; // at 0xE
|
|
};
|
|
|
|
bool IsValidBinaryFile(const BinaryFileHeader *header, u32 magic, u16 version, u16 numBlocks);
|
|
|
|
} // namespace ut
|
|
} // namespace nw4r
|
|
|
|
#endif
|