From 049938202c9468d726cc15ef553715dfe28d6bcb Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Sun, 20 Apr 2014 08:22:51 -0700 Subject: [PATCH] Allow using a copy of a psmfplayer handle. Since this works on the PSP. Games do it with mpeg for sure, maybe with psmfplayer as well? --- Core/HLE/scePsmf.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Core/HLE/scePsmf.cpp b/Core/HLE/scePsmf.cpp index e002140463..6273d2d361 100644 --- a/Core/HLE/scePsmf.cpp +++ b/Core/HLE/scePsmf.cpp @@ -481,7 +481,7 @@ Psmf *getPsmf(u32 psmf) PsmfPlayer *getPsmfPlayer(u32 psmfplayer) { - auto iter = psmfPlayerMap.find(psmfplayer); + auto iter = psmfPlayerMap.find(Memory::Read_U32(psmfplayer)); if (iter != psmfPlayerMap.end()) return iter->second; else @@ -925,6 +925,9 @@ int scePsmfPlayerCreate(u32 psmfPlayer, u32 dataPtr) if (psmfPlayerMap.find(psmfPlayer) != psmfPlayerMap.end()) delete psmfPlayerMap[psmfPlayer]; psmfPlayerMap[psmfPlayer] = psmfplayer; + + // Write something there to identify it with. + *player = psmfPlayer; } psmfplayer->psmfMaxAheadTimestamp = getMaxAheadTimestamp(581);