#include <pspdebug.h>
#include <pspctrl.h>
#include <pspkernel.h>
#include "pintich.h"
//#define printf pspDebugScreenPrintf

int PintiCtrl()
{
     SceCtrlData pc;
     
     
     while(1)
     {
        sceCtrlReadBufferPositive(&pc, 1);     
     if(pc.Buttons & PSP_CTRL_CIRCLE)
     sceKernelExitGame();
     }
     
}
int PintiAgree()
{
    pspDebugScreenClear();
    
    pspDebugScreenPrintf("Secret password correct!\n\n");
    
    pspDebugScreenSetTextColor(0x2F3F4F);
    pspDebugScreenPrintf("\
    This, is a special mode for set a password if you forgot of \ngenerate the password and put it on the same folder that ppp.\n\
    Generate the password with PPP Utility.exe, search it on \n\
    internet, and put the file password.txt on the same folder of ppp\n\
    generated by this utility.\n\
    Always , (if you don't have the password.txt generated) you can\n\
    put as password 1234 and it will be correct.\n\n");
    pspDebugScreenPrintf("Now, press O for go to the XMB.");
    
    PintiCtrl();
    
    return 0;
}
