 |
forums.ps2dev.org Homebrew PS2, PSP & PS3 Development Discussions
|
| View previous topic :: View next topic |
| Author |
Message |
snowsquirrel
Joined: 24 Feb 2008 Posts: 51
|
Posted: Mon Apr 07, 2008 3:01 am Post subject: HOME -> Quit in prx on slim == flaming death. |
|
|
If I export my game to the memstick, as eboot. when I home-quit, it says waiting and then the whole psp shuts off.
I am guessing something is wrong with my exit callbacks.
| Code: |
int CALLBACKS_exit( int arg1, int arg2, void *common )
{
(void)arg1;
(void)arg2;
(void)common;
sceKernelExitGame();
return 0;
}
int CALLBACKS_thread( SceSize args, void *argp )
{
const int cbid = sceKernelCreateCallback( "Exit Callback", CALLBACKS_exit, NULL );
sceKernelRegisterExitCallback( cbid );
sceKernelSleepThreadCB();
return 0;
}
int CALLBACKS_setup(void)
{
const int thid = sceKernelCreateThread( "update_thread", CALLBACKS_thread, 0x11, 0xFA0, 0, 0 );
if( thid >= 0 )
{
sceKernelStartThread( thid, 0, 0 );
}
return thid;
}
|
I am using prx mode on a slim.
Thanks,
~S |
|
| Back to top |
|
 |
jimparis
Joined: 10 Jun 2005 Posts: 1179 Location: Boston
|
Posted: Mon Apr 07, 2008 5:32 am Post subject: |
|
|
| I'd guess you have another thread running that's not yielding and so the process can't exit. |
|
| Back to top |
|
 |
snowsquirrel
Joined: 24 Feb 2008 Posts: 51
|
Posted: Mon Apr 07, 2008 5:38 am Post subject: |
|
|
I am not explicitly spawning anything threads. So possibly psplink is the culprit. I am having a bunch of prolblems with psplink on linux right now, so I'll have to try it out on window, when I a chance.
~S |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|