Merge pull request #117 from lioncash/cdvd

Minor changes to cdvdGigaherz
This commit is contained in:
David Quintana 2014-07-14 22:38:48 +02:00
commit f4178e41b3
1 changed files with 5 additions and 5 deletions

View File

@ -37,12 +37,12 @@ s32 cdvdParseTOC()
return 0;
}
s32 lastaddr = src->GetLayerBreakAddress();
s32 lastaddr = src->GetLayerBreakAddress();
if(lastaddr>=0)
{
if((lastaddr > 0)&&(tracks[0].length>lastaddr))
if((lastaddr > 0)&&(tracks[0].length>lastaddr))
{
tracks[1].length=lastaddr+1;
tracks[1].type=0;
@ -54,14 +54,14 @@ s32 cdvdParseTOC()
strack=1;
etrack=2;
}
else
else
{
tracks[1].length=tracks[0].length;
tracks[1].type=0;
strack=1;
etrack=1;
}
}
}
else
{
@ -136,7 +136,7 @@ s32 cdvdParseTOC()
if((cdtoc.Descriptors[i].Control&4)==0)
{
tracks[tn].type = 1;
tracks[tn].type = CDVD_AUDIO_TRACK;
}
else if((cdtoc.Descriptors[i].Control&0xE)==4)
{