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 

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

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



Joined: 03 Apr 2008
Posts: 39

PostPosted: Tue Jun 03, 2008 9:45 pm    Post subject: Loading only on console BOOT... is it possible? Reply with quote

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



Joined: 03 Apr 2008
Posts: 39

PostPosted: Wed Jun 04, 2008 6:59 am    Post subject: Reply with quote

Possible that does not exist a way? O.o
Back to top
View user's profile Send private message
Art



Joined: 09 Nov 2005
Posts: 647

PostPosted: Wed Jun 04, 2008 1:29 pm    Post subject: Reply with quote

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



Joined: 27 Feb 2007
Posts: 115

PostPosted: Thu Jun 05, 2008 8:03 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Torch



Joined: 28 May 2008
Posts: 842

PostPosted: Thu Jun 05, 2008 8:06 pm    Post subject: Reply with quote

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