X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=pico%2Fmedia.c;h=c03846d87fb7dac72c2aebe8c93cad083da390ad;hb=cc5ffc3cbe03715710a2adf6a8829f082fa7a819;hp=ef9b315f41a4e4cf68558bac6f2231d427d8ea1a;hpb=3e9da86efec76685d7fb374003ed0e2d9bc7c5fb;p=picodrive.git diff --git a/pico/media.c b/pico/media.c index ef9b315..c03846d 100644 --- a/pico/media.c +++ b/pico/media.c @@ -212,12 +212,13 @@ enum media_type_e PicoLoadMedia(const char *filename, Stop_CD(); PicoCartUnload(); PicoAHW = 0; + PicoQuirks = 0; if (media_type == PM_CD) { // check for MegaCD image cd_img_type = PicoCdCheck(filename, &cd_region); - if (cd_img_type >= 0 && cd_img_type != CIT_NOT_CD) + if ((int)cd_img_type >= 0 && cd_img_type != CIT_NOT_CD) { // valid CD image, ask frontend for BIOS.. rom_fname = NULL; @@ -296,6 +297,9 @@ enum media_type_e PicoLoadMedia(const char *filename, } } + if (PicoQuirks & PQUIRK_FORCE_6BTN) + PicoSetInputDevice(0, PICO_INPUT_PAD_6BTN); + out: if (rom_data) free(rom_data);