Files
pico-loader/common/gameCode.h

12 lines
275 B
C
Raw Normal View History

2025-11-22 11:08:28 +01:00
#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);
}