notaz.gp2x.de
/
picodrive.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
cd: fix breakage in comm detection
[picodrive.git]
/
pico
/
media.c
diff --git
a/pico/media.c
b/pico/media.c
index
ef9b315
..
c03846d
100644
(file)
--- 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;
Stop_CD();
PicoCartUnload();
PicoAHW = 0;
+ PicoQuirks = 0;
if (media_type == PM_CD)
{
// check for MegaCD image
cd_img_type = PicoCdCheck(filename, &cd_region);
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;
{
// 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);
out:
if (rom_data)
free(rom_data);