mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-05 15:27:46 -04:00
cue support wip
git-svn-id: file:///home/notaz/opt/svn/PicoDrive@432 be3aeb3a-fb24-0410-a615-afba39da0efa
This commit is contained in:
parent
583ab72c0b
commit
b923ecbe75
10 changed files with 285 additions and 24 deletions
|
@ -164,6 +164,9 @@ int emu_cdCheck(int *pregion)
|
|||
unsigned char buf[32];
|
||||
pm_file *cd_f;
|
||||
int type = 0, region = 4; // 1: Japan, 4: US, 8: Europe
|
||||
char ext[5];
|
||||
|
||||
get_ext(romFileName, ext);
|
||||
|
||||
cd_f = pm_open(romFileName);
|
||||
if (!cd_f) return 0; // let the upper level handle this
|
||||
|
@ -330,7 +333,7 @@ int emu_ReloadRom(void)
|
|||
|
||||
// check for MegaCD image
|
||||
cd_state = emu_cdCheck(&cd_region);
|
||||
if (cd_state > 0)
|
||||
if (cd_state != CIT_NOT_CD)
|
||||
{
|
||||
PicoAHW |= PAHW_MCD;
|
||||
// valid CD image, check for BIOS..
|
||||
|
@ -405,8 +408,8 @@ int emu_ReloadRom(void)
|
|||
Pico.m.frame_count = 0;
|
||||
|
||||
// insert CD if it was detected
|
||||
if (cd_state > 0) {
|
||||
ret = Insert_CD(romFileName, cd_state == 2);
|
||||
if (cd_state != CIT_NOT_CD) {
|
||||
ret = Insert_CD(romFileName, cd_state);
|
||||
if (ret != 0) {
|
||||
sprintf(menuErrorMsg, "Insert_CD() failed, invalid CD image?");
|
||||
lprintf("%s\n", menuErrorMsg);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue