mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Add a logging in sceAtracGetRemainFrame
This commit is contained in:
parent
87f31d0803
commit
2c89d78f9d
1 changed files with 4 additions and 2 deletions
|
@ -1194,11 +1194,13 @@ static u32 sceAtracGetRemainFrame(int atracID, u32 remainAddr) {
|
|||
} else if (!atrac->data_buf) {
|
||||
ERROR_LOG(ME, "sceAtracGetRemainFrame(%i, %08x): no data", atracID, remainAddr);
|
||||
return ATRAC_ERROR_NO_DATA;
|
||||
} else {
|
||||
DEBUG_LOG(ME, "sceAtracGetRemainFrame(%i, %08x[%d])", atracID, remainAddr, atrac->getRemainFrames());
|
||||
} else {
|
||||
if (Memory::IsValidAddress(remainAddr)) {
|
||||
Memory::Write_U32(atrac->getRemainFrames(), remainAddr);
|
||||
DEBUG_LOG(ME, "sceAtracGetRemainFrame(%i, %08x[%d])", atracID, remainAddr, atrac->getRemainFrames());
|
||||
}
|
||||
else
|
||||
DEBUG_LOG_REPORT(ME, "sceAtracGetRemainFrame(%i, %08x[%d]) invalid address", atracID, remainAddr, atrac->getRemainFrames());
|
||||
// Let sceAtracGetStreamDataInfo() know to set the full filled buffer .
|
||||
atrac->resetBuffer = true;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue