mirror of
https://github.com/libretro/ppsspp.git
synced 2024-11-24 16:49:50 +00:00
Merge pull request #2368 from unknownbrackets/mpeg-fix
For now, ignore duplicate sceMpegInit()/Finish()'s.
This commit is contained in:
commit
e6fb1b2e1a
@ -327,10 +327,11 @@ void __MpegShutdown() {
|
||||
u32 sceMpegInit() {
|
||||
if (isMpegInit) {
|
||||
WARN_LOG(HLE, "sceMpegInit(): already initialized");
|
||||
return ERROR_MPEG_ALREADY_INIT;
|
||||
// TODO: Need to properly hook module load/unload for this to work right.
|
||||
//return ERROR_MPEG_ALREADY_INIT;
|
||||
} else {
|
||||
INFO_LOG(HLE, "sceMpegInit()");
|
||||
}
|
||||
|
||||
INFO_LOG(HLE, "sceMpegInit()");
|
||||
isMpegInit = true;
|
||||
return hleDelayResult(0, "mpeg init", 750);
|
||||
}
|
||||
@ -1009,10 +1010,11 @@ u32 sceMpegFinish()
|
||||
if (!isMpegInit)
|
||||
{
|
||||
WARN_LOG(HLE, "sceMpegFinish(...): not initialized");
|
||||
return ERROR_MPEG_NOT_YET_INIT;
|
||||
// TODO: Need to properly hook module load/unload for this to work right.
|
||||
//return ERROR_MPEG_NOT_YET_INIT;
|
||||
} else {
|
||||
INFO_LOG(HLE, "sceMpegFinish(...)");
|
||||
}
|
||||
|
||||
INFO_LOG(HLE, "sceMpegFinish(...)");
|
||||
isMpegInit = false;
|
||||
//__MpegFinish();
|
||||
return hleDelayResult(0, "mpeg finish", 250);
|
||||
|
Loading…
Reference in New Issue
Block a user