added cart unit tests
This commit is contained in:
@ -5,9 +5,9 @@ typedef struct {
|
||||
u32 rom_size;
|
||||
u8 *rom_data;
|
||||
rom_header *header;
|
||||
} cert_context;
|
||||
} cart_context;
|
||||
|
||||
static cert_context ctx;
|
||||
static cart_context ctx;
|
||||
|
||||
static const char *ROM_TYPES[] = {
|
||||
"ROM ONLY",
|
||||
@ -111,6 +111,10 @@ static const char *LIC_CODE[0xA5] = {
|
||||
[0xA4] = "Konami (Yu-Gi-Oh!)"
|
||||
};
|
||||
|
||||
rom_header *get_rom_header() {
|
||||
return ctx.header;
|
||||
}
|
||||
|
||||
const char *cart_type_name() {
|
||||
if(ctx.header->type <= 0x22) {
|
||||
return ROM_TYPES[ctx.header->type];
|
||||
|
Reference in New Issue
Block a user