Skip to content

Commit

Permalink
Demote a very common log message from ERROR to DEBUG
Browse files Browse the repository at this point in the history
  • Loading branch information
hrydgard committed Jul 23, 2024
1 parent 5fdff10 commit 5d4f413
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Core/HLE/sceAtrac.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -677,7 +677,12 @@ static u32 sceAtracSetLoopNum(int atracID, int loopNum) {
return err;
}
if (atrac->GetTrack().loopinfo.size() == 0) {
return hleLogError(Log::ME, ATRAC_ERROR_NO_LOOP_INFORMATION, "no loop information");
if (loopNum == -1) {
// This is very common and not really a problem.
return hleLogDebug(Log::ME, ATRAC_ERROR_NO_LOOP_INFORMATION, "no loop information to write to!");
} else {
return hleLogError(Log::ME, ATRAC_ERROR_NO_LOOP_INFORMATION, "no loop information to write to!");
}
}

atrac->SetLoopNum(loopNum);
Expand Down

0 comments on commit 5d4f413

Please sign in to comment.