Merge pull request #2338 from oioitff/atrac-fix

Bug fix for sceAtrac.
This commit is contained in:
Henrik Rydgård committed 2013-06-18 00:20:25 -07:00
commit c70c164da9
1 file changed
+2 -1
+2 -1
View File
@@ -339,6 +339,7 @@ int createAtrac(Atrac *atrac, int codecType) {
for (int i = 0; i < (int)ARRAY_SIZE(atracIDs); ++i) {
if (atracIDTypes[i] == codecType && atracIDs[i] == 0) {
atracIDs[i] = atrac;
atrac->atracID = i;
return i;
}
}
@@ -483,7 +484,7 @@ void Atrac::Analyze()
}
u32 sceAtracGetAtracID(int codecType) {
if (codecType != PSP_MODE_AT_3 && codecType > PSP_MODE_AT_3_PLUS) {
if (codecType != PSP_MODE_AT_3 && codecType != PSP_MODE_AT_3_PLUS) {
ERROR_LOG_REPORT(HLE, "sceAtracGetAtracID(%i): invalid codecType", codecType);
return ATRAC_ERROR_INVALID_CODECTYPE;
}