I would like to ask a question about nkThreadSuspend (sceKernelGetThreadId ());
When I press on LTRIGGER the battery menu is displayed and blocks the xmb but the problem is when I want to leave this menu by pressing on RTRIGGER this menu does not hide :< and the xmb is always blocked.
Here the "display" thread:
Code: Select all
while(1)
{
if(menubattery && affichage)
{
blit2_string(2, 9, " prxutility++ version 4.0 by pspflashsystem",0x111fff,0x000000);
blit2_string(2, 11, " Battery Information:",0x111fff,0x000000);
blit2_string(2, 23, " Other Information:",0x111fff,0x000000);
blit_string(2,27,pinfo,0x000000,0x111fff);
blit_string(2,12,pinfo1,0x000000,0x111fff);
blit_string(2,13,pinfo2,0x000000,0x111fff);
blit_string(2,14,pinfo3,0x000000,0x111fff);
blit_string(2,15,pinfo4,0x000000,0x111fff);
blit_string(2,18,pinfo5,0x000000,0x111fff);
blit_string(2,19,pinfo6,0x000000,0x111fff);
blit_string(2,20,pinfo7,0x000000,0x111fff);
blit_string(2,24,pinfo9,0x000000,0x111fff);
blit_string(2,25,pinfo8,0x000000,0x111fff);
blit_string(2,28,pinfo12,0x000000,0x111fff);
blit_string(2,26,pinfo13,0x000000,0x111fff);
blit2_string(2, 31, "NOTE + Volume Down to hide this menu",0x111fff,0x000000);
blit2_string(2, 32, "Visit my website: http://www.pspgen.com/~pspflashsystem/",0x111fff,0x000000);
nkThreadSuspend(sceKernelGetThreadId());
}
Code: Select all
if(pad.Buttons & PSP_CTRL_LTRIGGER)
{
info = 1;
affichage = 1;
sprintf(pinfo12, " Motherboard Model: 0x%02X", Serial[30]);
if(Serial[30]==0x01)
{
sprintf(pinfo12, " Motherboard Model: 0x%02X --> TA-079/TA-081", Serial[30]);
}
if(Serial[30]==0x02)
{
sprintf(pinfo12, " Motherboard Model: 0x%02X --> TA-082/TA-086", Serial[30]);
}
if(Serial[30]==0x03)
{
sprintf(pinfo12, " Motherboard Model: 0x%02X --> TA-85", Serial[30]);
}
}
if(info) {
if(pad.Buttons & PSP_CTRL_RTRIGGER) affichage = 0, menubattery=0, nkThreadResume(sceKernelGetThreadId());
}
PS: I'm apologize for my bad english because I'm French :)