(psp1) Indent nits
This commit is contained in:
parent
f95049e99c
commit
3255151690
|
@ -17,26 +17,26 @@ static SceUID main_thread_id;
|
||||||
|
|
||||||
static int main_thread(SceSize args, void *argp)
|
static int main_thread(SceSize args, void *argp)
|
||||||
{
|
{
|
||||||
SceCtrlData paddata;
|
SceCtrlData paddata;
|
||||||
|
|
||||||
thread_active = 1;
|
thread_active = 1;
|
||||||
|
|
||||||
while (thread_active)
|
while (thread_active)
|
||||||
{
|
{
|
||||||
sceCtrlPeekBufferPositive(&paddata, 1);
|
sceCtrlPeekBufferPositive(&paddata, 1);
|
||||||
buttons = paddata.Buttons;
|
buttons = paddata.Buttons;
|
||||||
sceKernelDelayThread(1000000/60);
|
sceKernelDelayThread(1000000/60);
|
||||||
}
|
}
|
||||||
|
|
||||||
sceKernelExitThread(0);
|
sceKernelExitThread(0);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
unsigned int read_system_buttons(void)
|
unsigned int read_system_buttons(void)
|
||||||
{
|
{
|
||||||
return buttons;
|
return buttons;
|
||||||
}
|
}
|
||||||
|
|
||||||
void exitspawn_kernel( const char* fileName, SceSize args, void * argp){
|
void exitspawn_kernel( const char* fileName, SceSize args, void * argp){
|
||||||
|
@ -65,23 +65,23 @@ int module_start(SceSize args, void *argp)
|
||||||
(void)args;
|
(void)args;
|
||||||
(void)argp;
|
(void)argp;
|
||||||
|
|
||||||
buttons = 0;
|
buttons = 0;
|
||||||
thread_active = 0;
|
thread_active = 0;
|
||||||
main_thread_id = sceKernelCreateThread("main Thread", main_thread, 0x11, 0x200, 0, NULL);
|
main_thread_id = sceKernelCreateThread("main Thread", main_thread, 0x11, 0x200, 0, NULL);
|
||||||
|
|
||||||
if (main_thread >= 0)
|
if (main_thread >= 0)
|
||||||
sceKernelStartThread(main_thread_id, 0, 0);
|
sceKernelStartThread(main_thread_id, 0, 0);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
int module_stop(void)
|
int module_stop(void)
|
||||||
{
|
{
|
||||||
if (main_thread_id >= 0)
|
if (main_thread_id >= 0)
|
||||||
{
|
{
|
||||||
thread_active = 0;
|
thread_active = 0;
|
||||||
sceKernelWaitThreadEnd(main_thread_id, NULL);
|
sceKernelWaitThreadEnd(main_thread_id, NULL);
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue