| View previous topic :: View next topic |
| Author |
Message |
Stewie87
Joined: 03 Apr 2008 Posts: 39
|
Posted: Tue Jun 03, 2008 9:45 pm Post subject: Loading only on console BOOT... is it possible? |
|
|
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? :'( |
|
| Back to top |
|
 |
Stewie87
Joined: 03 Apr 2008 Posts: 39
|
Posted: Wed Jun 04, 2008 6:59 am Post subject: |
|
|
| Possible that does not exist a way? O.o |
|
| Back to top |
|
 |
Art
Joined: 09 Nov 2005 Posts: 647
|
Posted: Wed Jun 04, 2008 1:29 pm Post subject: |
|
|
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. |
|
| Back to top |
|
 |
SilverSpring
Joined: 27 Feb 2007 Posts: 115
|
Posted: Thu Jun 05, 2008 8:03 pm Post subject: |
|
|
| 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. |
|
| Back to top |
|
 |
Torch

Joined: 28 May 2008 Posts: 842
|
Posted: Thu Jun 05, 2008 8:06 pm Post subject: |
|
|
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. |
|
| Back to top |
|
 |
|