mirror of
https://github.com/libretro/ppsspp.git
synced 2024-11-26 01:40:24 +00:00
Correct result of scePsmfGetVideoInfo().
This commit is contained in:
parent
9965f7c071
commit
5b17005e31
@ -494,12 +494,12 @@ u32 scePsmfGetVideoInfo(u32 psmfStruct, u32 videoInfoAddr) {
|
||||
INFO_LOG(HLE, "scePsmfGetVideoInfo(%08x, %08x)", psmfStruct, videoInfoAddr);
|
||||
Psmf *psmf = getPsmf(psmfStruct);
|
||||
if (!psmf) {
|
||||
ERROR_LOG(HLE, "scePsmfGetNumberOfSpecificStreams - invalid psmf");
|
||||
ERROR_LOG(HLE, "scePsmfGetVideoInfo - invalid psmf");
|
||||
return ERROR_PSMF_NOT_FOUND;
|
||||
}
|
||||
if (Memory::IsValidAddress(videoInfoAddr)) {
|
||||
Memory::Write_U32(psmf->videoWidth, videoInfoAddr);
|
||||
Memory::Write_U32(psmf->videoWidth, videoInfoAddr + 4);
|
||||
Memory::Write_U32(psmf->videoHeight, videoInfoAddr + 4);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
@ -508,7 +508,7 @@ u32 scePsmfGetAudioInfo(u32 psmfStruct, u32 audioInfoAddr) {
|
||||
INFO_LOG(HLE, "scePsmfGetAudioInfo(%08x, %08x)", psmfStruct, audioInfoAddr);
|
||||
Psmf *psmf = getPsmf(psmfStruct);
|
||||
if (!psmf) {
|
||||
ERROR_LOG(HLE, "scePsmfGetNumberOfSpecificStreams - invalid psmf");
|
||||
ERROR_LOG(HLE, "scePsmfGetAudioInfo - invalid psmf");
|
||||
return ERROR_PSMF_NOT_FOUND;
|
||||
}
|
||||
if (Memory::IsValidAddress(audioInfoAddr)) {
|
||||
|
Loading…
Reference in New Issue
Block a user