Loading only on console BOOT... is it possible?

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

Moderators: cheriff, TyRaNiD

Post Reply
Stewie87
Posts: 34
Joined: Thu Apr 03, 2008 8:16 am

Loading only on console BOOT... is it possible?

Post by Stewie87 »

Hi, i need your help again ^^''
I made a plugin for my PSP (CF 3.90M33-3) but now I would that plugin will be loaded only on console boot and not for example when I exit from a game/UMD/Pops...
Is it possible? What kind of function i have to use?

Please help me, thanks ^^


EDIT: no idea boys? :'(
Stewie87
Posts: 34
Joined: Thu Apr 03, 2008 8:16 am

Post by Stewie87 »

Possible that does not exist a way? O.o
Art
Posts: 642
Joined: Wed Nov 09, 2005 8:01 am

Post by Art »

There was an example posted to tell if the PSP was last coldbooted,
or woken from suspend, but I can't find it.
Not that I know if it would help, becasue after you exited from a game,
the flags would probably still be the same.
If not actually, then potentially.
SilverSpring
Posts: 110
Joined: Tue Feb 27, 2007 9:43 pm
Contact:

Post by SilverSpring »

Art wrote:There was an example posted to tell if the PSP was last coldbooted,
or woken from suspend, but I can't find it.
Not that I know if it would help, becasue after you exited from a game,
the flags would probably still be the same.
I think you are talking about this thread: http://forums.ps2dev.org/viewtopic.php?t=9883

I dont think that will help the topic creator though.

So basically you want to be able to tell if the vsh was booted from IPL rather than from reboot.bin. Im pretty sure there is a flag that get's passed in the vshmain arg's that tells. I cannot recall at the moment though.
User avatar
Torch
Posts: 825
Joined: Wed May 28, 2008 2:50 am

Post by Torch »

As for the vshmain_arg's when booted from IPL args=0 and argp = NULL.
Else they have some value such as error messages to be displayed when xmb launches. You can tell if vsh was launched from recovery because then args=256.
Exiting from a game/app will always have some arguements, i've only seen 1024 bytes long.
Post Reply