mirror of
https://github.com/libretro/ppsspp.git
synced 2025-02-12 20:40:49 +00:00
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?
This commit is contained in:
parent
b9711db99a
commit
049938202c
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user