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

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
snowsquirrel
Posts: 51
Joined: Sun Feb 24, 2008 3:36 am

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

Post by snowsquirrel »

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: Select all

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
jimparis
Posts: 1145
Joined: Fri Jun 10, 2005 4:21 am
Location: Boston

Post by jimparis »

I'd guess you have another thread running that's not yielding and so the process can't exit.
snowsquirrel
Posts: 51
Joined: Sun Feb 24, 2008 3:36 am

Post by snowsquirrel »

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
Post Reply