From 0d4b0a1246ddfb4e76566f4aa037f6c2b429c67b Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Tue, 26 Mar 2013 22:20:45 -0700 Subject: [PATCH] Track unknown sceIoIoctl commands better. Also an mpeg stub. --- Core/HLE/sceIo.cpp | 9 +++++++-- Core/HLE/sceMpeg.cpp | 1 + 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/Core/HLE/sceIo.cpp b/Core/HLE/sceIo.cpp index 939ffe320f..c4a1d8c180 100644 --- a/Core/HLE/sceIo.cpp +++ b/Core/HLE/sceIo.cpp @@ -1406,8 +1406,13 @@ int __IoIoctl(u32 id, u32 cmd, u32 indataPtr, u32 inlen, u32 outdataPtr, u32 out break; default: - Reporting::ReportMessage("sceIoIoctl(%s, %08x, %x, %08x, %x)", f->fullpath.c_str(), indataPtr, inlen, outdataPtr, outlen); - ERROR_LOG(HLE, "UNIMPL 0=sceIoIoctl id: %08x, cmd %08x, indataPtr %08x, inlen %08x, outdataPtr %08x, outLen %08x", id,cmd,indataPtr,inlen,outdataPtr,outlen); + { + char temp[256]; + // We want the reported message to include the cmd, so it's unique. + sprintf(temp, "sceIoIoctl(%%s, %08x, %%08x, %%x, %%08x, %%x)", cmd); + Reporting::ReportMessage(temp, f->fullpath.c_str(), cmd, indataPtr, inlen, outdataPtr, outlen); + ERROR_LOG(HLE, "UNIMPL 0=sceIoIoctl id: %08x, cmd %08x, indataPtr %08x, inlen %08x, outdataPtr %08x, outLen %08x", id,cmd,indataPtr,inlen,outdataPtr,outlen); + } break; } diff --git a/Core/HLE/sceMpeg.cpp b/Core/HLE/sceMpeg.cpp index 218e230244..44c9d070c6 100644 --- a/Core/HLE/sceMpeg.cpp +++ b/Core/HLE/sceMpeg.cpp @@ -1755,6 +1755,7 @@ const HLEFunction sceMpeg[] = {0xaf26bb01,WrapU_U,"sceMpegAvcResourceGetAvcEsBuf"}, {0xfcbdb5ad,WrapU_U,"sceMpegAvcResourceInit"}, {0xF5E7EA31,WrapI_UUUI,"sceMpegAvcConvertToYuv420"}, + {0x01977054,0,"sceMpegQueryUserdataEsSize"}, }; const HLEFunction sceMp3[] =