All pastes #773952 Raw Edit

Unbenannt

public text v1 · immutable
·published 2007-11-14 21:47 UTC
rendered paste body
#include <pspkernel.h>

#include <pspdisplay.h>
#include <stdlib.h>
#include <pspgu.h>

#include <pspthreadman.h>

#include <stdio.h>

#include <string.h>
#include "blit.h"

#include <psploadcore.h>

#include <pspiofilemgr.h>

#include <malloc.h>
#include "graphics.h"



PSP_MODULE_INFO("VSHBlit0.2", 0x1000, 1, 1);

PSP_MAIN_THREAD_ATTR(0);




int main_thread(SceSize args, void *argp) {


	sceKernelDelayThread(3000000);

	blit_setup();

while(1)
{

	blit_string(200, 210, "Hello vsh world");
	sceDisplayWaitVblankStart();
}
	sceKernelSleepThread();
return 0;

}



int module_start(SceSize args, void *argp) {


	int thid;


	/* Create a high priority thread */

	thid = sceKernelCreateThread("vshBlit", main_thread, 0x18, 0x1000, 0, NULL);
	if(thid >= 0) sceKernelStartThread(thid, args, argp);


	return 0;

}