mirror of
https://github.com/libretro/ppsspp.git
synced 2024-12-01 04:10:30 +00:00
Clear the psmfplayer handle on delete.
This commit is contained in:
parent
c651a0d1e9
commit
68bccebdeb
@ -1373,20 +1373,15 @@ int scePsmfPlayerDelete(u32 psmfPlayer)
|
||||
PsmfPlayer *psmfplayer = getPsmfPlayer(psmfPlayer);
|
||||
if (!psmfplayer) {
|
||||
ERROR_LOG(ME, "scePsmfPlayerDelete(%08x): invalid psmf player", psmfPlayer);
|
||||
return ERROR_PSMF_NOT_FOUND;
|
||||
}
|
||||
|
||||
bool isInitialized = isInitializedStatus(psmfplayer->status);
|
||||
if (!isInitialized) {
|
||||
ERROR_LOG(ME, "scePsmfPlayerDelete(%08x): not initialized", psmfPlayer);
|
||||
return ERROR_PSMFPLAYER_INVALID_STATUS;
|
||||
}
|
||||
|
||||
INFO_LOG(ME, "scePsmfPlayerDelete(%08x)", psmfPlayer);
|
||||
delete psmfplayer;
|
||||
psmfPlayerMap.erase(psmfPlayer);
|
||||
psmfPlayerMap.erase(Memory::Read_U32(psmfPlayer));
|
||||
Memory::Write_U32(0, psmfPlayer);
|
||||
|
||||
return 0;
|
||||
return hleDelayResult(0, "psmfplayer deleted", 20000);
|
||||
}
|
||||
|
||||
int scePsmfPlayerUpdate(u32 psmfPlayer)
|
||||
|
Loading…
Reference in New Issue
Block a user