Skip to content

Commit f90750d

Browse files
author
Niko
committed
progress
1 parent c75a757 commit f90750d

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

decompile/General/CDSYS/CDSYS_12_XAGetNumTracks.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
int DECOMP_CDSYS_XAGetNumTracks(int categoryID)
44
{
55
// XnfLoaded will be false without boolUseDisc
6-
//if(sdata->boolUseDisc == 0) return 0;
6+
//if(sdata->boolUseDisc == 0) return -1;
77
if(sdata->bool_XnfLoaded == 0) return -1;
88
if(categoryID >= CDSYS_XA_NUM_TYPES) return -1;
99

decompile/General/CDSYS/CDSYS_14_XAGetTrackLength.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ int DECOMP_CDSYS_XAGetTrackLength(int categoryID, int xaID)
44
{
55
if(xaID >= DECOMP_CDSYS_XAGetNumTracks(categoryID)) return 0;
66

7-
return sdata->ptrArray_XaSize[
8-
sdata->ptrArray_firstSongIndex[categoryID] +
9-
xaID
10-
].XaBytes;
7+
int sizeIndex =
8+
sdata->ptrArray_firstSongIndex[categoryID] + xaID;
9+
10+
return sdata->ptrArray_XaSize[sizeIndex ].XaBytes;
1111
}

0 commit comments

Comments
 (0)