Files
pico-loader/common/gameCode.h
2025-11-23 17:14:17 +01:00

12 lines
275 B
C

#pragma once
static inline consteval u32 GAMECODE(const char code[4])
{
return code[0] | (code[1] << 8) | (code[2] << 16) | (code[3] << 24);
}
static inline consteval u32 GAMECODE_NO_REGION(const char code[3])
{
return code[0] | (code[1] << 8) | (code[2] << 16);
}