]> FriiDump Source - friidump.git/blob - libfriidump/xbox_region.h
Fix MSVC CMake SHA1 header resolution
[friidump.git] / libfriidump / xbox_region.h
1 #ifndef XBOX_REGION_H_INCLUDED
2 #define XBOX_REGION_H_INCLUDED
3
4 #include <stddef.h>
5 #include <stdint.h>
6
7 typedef enum {
8     XB_REGION_US_CANADA      = 0x00000001U,
9     XB_REGION_JAPAN          = 0x00000002U,
10     XB_REGION_EUROPE_AU_NZ   = 0x00000004U,
11     XB_REGION_REST_OF_WORLD  = 0x00000008U,
12     XB_REGION_MANUFACTURING  = 0x80000000U
13 } XboxRegion;
14
15 /* Formats an Original Xbox XBE certificate GameRegion bit mask.
16  * The result describes the XBE execution region, not a television standard.
17  * Returns false only when the output buffer is unusable. */
18 int xbox_region_format(uint32_t mask, char *output, size_t output_size);
19
20 #endif