sms, add sg-1000 support

This commit is contained in:
kub 2022-02-28 21:45:50 +00:00
parent 216c9f17fa
commit df6c895c5c
9 changed files with 72 additions and 41 deletions

View file

@ -313,10 +313,13 @@ enum media_type_e PicoLoadMedia(const char *filename,
rom_data = NULL; // now belongs to PicoCart
// simple test for GG. Do this here since m.hardware is nulled in Insert
if (PicoIn.AHW & PAHW_SMS) {
if (!strcmp(rom->ext,"gg") && !PicoIn.hwSelect) {
Pico.m.hardware |= 0x1;
if ((PicoIn.AHW & PAHW_SMS) && !PicoIn.hwSelect) {
if (!strcmp(rom->ext,"gg")) {
Pico.m.hardware |= PMS_HW_GG;
lprintf("detected GG ROM\n");
} else if (!strcmp(rom->ext,"sg")) {
Pico.m.hardware |= PMS_HW_SG;
lprintf("detected SG-1000 ROM\n");
} else
lprintf("detected SMS ROM\n");
}