| View previous topic :: View next topic |
| Author |
Message |
Slash
Joined: 07 Jan 2007 Posts: 26
|
Posted: Mon Oct 08, 2007 1:51 pm Post subject: Delaying XMB load |
|
|
| 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 |
|
 |
KickinAezz
Joined: 03 Jun 2007 Posts: 328
|
Posted: Tue Oct 09, 2007 1:42 am Post subject: |
|
|
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 |
|
 |
Slash
Joined: 07 Jan 2007 Posts: 26
|
Posted: Tue Oct 09, 2007 8:26 am Post subject: |
|
|
| 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 |
|
 |
moonlight
Joined: 26 Oct 2005 Posts: 567
|
Posted: Tue Oct 09, 2007 8:48 am Post subject: |
|
|
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 |
|
 |
Slash
Joined: 07 Jan 2007 Posts: 26
|
Posted: Tue Oct 09, 2007 10:18 pm Post subject: |
|
|
| 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 |
|
 |
|