forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

HOME -> Quit in prx on slim == flaming death.

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
snowsquirrel



Joined: 24 Feb 2008
Posts: 51

PostPosted: Mon Apr 07, 2008 3:01 am    Post subject: HOME -> Quit in prx on slim == flaming death. Reply with quote

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
View user's profile Send private message
jimparis



Joined: 10 Jun 2005
Posts: 1179
Location: Boston

PostPosted: Mon Apr 07, 2008 5:32 am    Post subject: Reply with quote

I'd guess you have another thread running that's not yielding and so the process can't exit.
Back to top
View user's profile Send private message
snowsquirrel



Joined: 24 Feb 2008
Posts: 51

PostPosted: Mon Apr 07, 2008 5:38 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
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