EmuNewz Network
scePsmfPlayerGetPsmfInfo fix - Printable Version

+- EmuNewz Network (https://www.emunewz.net/forum)
+-- Forum: PSP Emulation (https://www.emunewz.net/forum/forumdisplay.php?fid=191)
+--- Forum: JPCSP Official Forum (https://www.emunewz.net/forum/forumdisplay.php?fid=51)
+---- Forum: svn trunk discussion (https://www.emunewz.net/forum/forumdisplay.php?fid=56)
+---- Thread: scePsmfPlayerGetPsmfInfo fix (/showthread.php?tid=130137)



scePsmfPlayerGetPsmfInfo fix - sum2012 - 02-19-2013

Fixed by my friend(slore)
Make Dangan Ronpa -NPJH50372 can see movie in nornal
(Press new Game, will see the first movie fly to the universe)

/trunk/src/jpcsp/HLE/modules150/scePsmfPlayer.java
change from setValue to getValue

Code:
@HLEFunction(nid = 0xDF089680, version = 150, checkInsideInterrupt = true)
   public int scePsmfPlayerGetPsmfInfo(@CheckArgument("checkPlayerInitialized") int psmfPlayer, TPointer32 psmfInfoAddr) {
        if (psmfPlayerStatus < PSMF_PLAYER_STATUS_STANDBY) {
            return ERROR_PSMFPLAYER_NOT_INITIALIZED;
        }
        psmfCurrentPts = psmfInfoAddr.getValue(0);
        psmfAvcStreamNum = psmfInfoAddr.getValue(4);
        psmfAtracStreamNum = psmfInfoAddr.getValue(8);
        psmfPcmStreamNum = psmfInfoAddr.getValue(12);
        psmfPlayerVersion = psmfInfoAddr.getValue(16);
        return 0;
    }



RE: scePsmfPlayerGetPsmfInfo fix - gid15 - 02-24-2013

(02-19-2013, 03:07 PM)sum2012 Wrote: Fixed by my friend(slore)
Make Dangan Ronpa -NPJH50372 can see movie in nornal
(Press new Game, will see the first movie fly to the universe)

/trunk/src/jpcsp/HLE/modules150/scePsmfPlayer.java
change from setValue to getValue
I've tried another fix for scePsmfPlayerGetPsmfInfo in r2985. Does it help?


RE: scePsmfPlayerGetPsmfInfo fix - sum2012 - 02-24-2013

Do not help.
It display
Code:
04:59:22  INFO hle.sceMpeg - movieMainThread - sceMpegFinish
very fast
(02-24-2013, 06:07 PM)gid15 Wrote:
(02-19-2013, 03:07 PM)sum2012 Wrote: Fixed by my friend(slore)
Make Dangan Ronpa -NPJH50372 can see movie in nornal
(Press new Game, will see the first movie fly to the universe)

/trunk/src/jpcsp/HLE/modules150/scePsmfPlayer.java
change from setValue to getValue
I've tried another fix for scePsmfPlayerGetPsmfInfo in r2985. Does it help?



RE: scePsmfPlayerGetPsmfInfo fix - gid15 - 02-25-2013

(02-24-2013, 09:04 PM)sum2012 Wrote: Do not help.
It display
Code:
04:59:22  INFO hle.sceMpeg - movieMainThread - sceMpegFinish
very fast
Does it help to change scePsmfPlayerGetPsmfInfo line 642 into:
Code:
psmfInfoAddr.setValue(0, (int) psmfPlayerAtracAu.pts);
(psmfPlayerAtracAu instead of psmfPlayerAvcAu).


RE: scePsmfPlayerGetPsmfInfo fix - sum2012 - 02-25-2013

No help.same
(02-25-2013, 11:19 AM)gid15 Wrote: Does it help to change scePsmfPlayerGetPsmfInfo line 642 into:
Code:
psmfInfoAddr.setValue(0, (int) psmfPlayerAtracAu.pts);
(psmfPlayerAtracAu instead of psmfPlayerAvcAu).



RE: scePsmfPlayerGetPsmfInfo fix - gid15 - 02-26-2013

I think to now have found the correct return values for scePsmfPlayerGetPsmfInfo. Could you test r2986?

Thank you!


RE: scePsmfPlayerGetPsmfInfo fix - sum2012 - 02-26-2013

Well done Smile .You always find better solution than me.
(02-26-2013, 08:04 PM)gid15 Wrote: I think to now have found the correct return values for scePsmfPlayerGetPsmfInfo. Could you test r2986?

Thank you!