MCPcopy Create free account
hub / github.com/N64Recomp/N64Recomp / check_magic

Function check_magic

src/mod_symbols.cpp:116–121  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

114}
115
116bool check_magic(const FileHeader* header) {
117 static const char good_magic[] = {'N','6','4','R','S','Y','M','S'};
118 static_assert(sizeof(good_magic) == sizeof(FileHeader::magic));
119
120 return memcmp(header->magic, good_magic, sizeof(good_magic)) == 0;
121}
122
123static inline uint32_t round_up_4(uint32_t value) {
124 return (value + 3) & (~3);

Callers 1

parse_mod_symbolsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected