(07-13-2014, 10:39 PM)sum2012 Wrote: @AdamN callback exampleIn the code:
https://github.com/hrydgard/ppsspp/blob/....cpp#L1434
Code:
PostPutAction *action = (PostPutAction *)__KernelCreateAction(actionPostPut);
action->setRingAddr(ringbufferAddr);
// TODO: Should call this multiple times until we get numPackets.
// Normally this would be if it did not read enough, but also if available > packets.
// Should ultimately return the TOTAL number of returned packets.
u32 packetsThisRound = std::min(numPackets, (u32)ringbuffer->packets);
u32 args[3] = {(u32)ringbuffer->data, packetsThisRound, (u32)ringbuffer->callback_args};
__KernelDirectMipsCall(ringbuffer->callback_addr, action, args, 3, false);Because currently i'm using __KernelDirectMipsCall without action and __KernelDirectMipsCall returning even before the MIPS code being executed which cause an issue if another __KernelDirectMipsCall to the same callback address came in at the time the previous MIPS code is still executed.
And my current workaround is by using sleep_ms to make sure the MIPS is executed before calling another __KernelDirectMipsCall which isn't good since different code may need different time to executed and i still don't know whether the MIPS call is really done (ie. fully executed) or not with sleep_ms.
(07-13-2014, 10:44 PM)Kyodan Wrote: Well,i tested Kingdom hearts BBS on this build(#314) and it seems it fixed the problem where no one could join a event.Now when we try to start an event,it says 'Connection lost'.Probably have the same issue with GTA:VCS where after all players joined and the game started everyone gets connection lost.
can it be added to the list with the [Menu] tag,since it can see/find players but can't start?
And I haven't figured out the cause of this connection lost.
(07-13-2014, 07:47 PM)Dekkerlion Wrote: Hey.I tried playing on LAN PSP vs PC but I cannot get it to work.I set up my PSP server address correctly and I put my PC adhoc address on localhost,and my PSP sees instead of my PC ,another friend card similar to "myself" and my PC cannot see my PSP friend card.Can anyone please gimme some advice?Don't use "localhost" or 127.0.0.1, use the the LAN IP (ie. 192.x.x.x or 172.x.x.x or 10.x.x.x) instead, adhoc server doesn't seems to like localhost/127.0.0.1
PPSSPP Multiplayer Guide: https://github.com/hrydgard/ppsspp/wiki/How-to-play-multiplayer-games-with-PPSSPP


