From 7adb16e3ac097d3555845facd241c2fe893a1198 Mon Sep 17 00:00:00 2001 From: oioitff Date: Tue, 18 Jun 2013 13:55:15 +0800 Subject: [PATCH] Bug fix for sceAtrac. --- Core/HLE/sceAtrac.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Core/HLE/sceAtrac.cpp b/Core/HLE/sceAtrac.cpp index ba320148bc..3f3ea5175f 100644 --- a/Core/HLE/sceAtrac.cpp +++ b/Core/HLE/sceAtrac.cpp @@ -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; }