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 

Delaying XMB load

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



Joined: 07 Jan 2007
Posts: 26

PostPosted: Mon Oct 08, 2007 1:51 pm    Post subject: Delaying XMB load Reply with quote

Is there a way to delay the load of XMB in a plugin? I mean, let the plugin finish its work before letting the XMB to load?
Back to top
View user's profile Send private message
KickinAezz



Joined: 03 Jun 2007
Posts: 328

PostPosted: Tue Oct 09, 2007 1:42 am    Post subject: Reply with quote

Suspend VSHmain thread then resume[when needed].
_________________
Intrigued by PSP system Since December 2006.
Use it more for Development than for Gaming.
Back to top
View user's profile Send private message
Slash



Joined: 07 Jan 2007
Posts: 26

PostPosted: Tue Oct 09, 2007 8:26 am    Post subject: Reply with quote

KickinAezz wrote:
Suspend VSHmain thread then resume[when needed].


Thanks but how do you suspend it? I can suspend my own plugin thread but that also suspends the following modules.
Back to top
View user's profile Send private message
moonlight



Joined: 26 Oct 2005
Posts: 567

PostPosted: Tue Oct 09, 2007 8:48 am    Post subject: Reply with quote

If you don't necesarily need a thread, you can always do all your stuff in the module start, the next module will not be loaded until yours.

If you really need a separate thread, you could use the sctrlHENSetStartModuleHandler, and wait until vsh_module loaded using synchronization functions such as semaphores, event flags, etc
Back to top
View user's profile Send private message
Slash



Joined: 07 Jan 2007
Posts: 26

PostPosted: Tue Oct 09, 2007 10:18 pm    Post subject: Reply with quote

moonlight wrote:
If you don't necesarily need a thread, you can always do all your stuff in the module start, the next module will not be loaded until yours.

If you really need a separate thread, you could use the sctrlHENSetStartModuleHandler, and wait until vsh_module loaded using synchronization functions such as semaphores, event flags, etc


Thanks a lot man! That was really a great help! I didn't know semaphores until now. Thanks again!

This solves my problem. All I have to do now is to load the module sceUtility_driver for the timezone. Can you tell me the safest way to load that module? I want to load that module before my plugin ends. And is it safe to load it early knowing it might be loaded again before the VSH loads up?

Thanks in advance! :)
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