
07-31-2006, 04:59 PM
|
| Senior Member
My Mood: | | Join Date: Mar 2006 Location: USA Age: 16
Posts: 284
Points: 32.39 Donate | |
WHATS WRONG with MY CODE??? ok im trying to make a simple hello world program . it compiles into a eboot but when i start it -its just a blank screen!? so can you tell me whats wrong with this-----. it thinks its html at pspkernel.h and pspdebug.h
but its really there
#include
#include
#define printf pspDebugScreenPrintf
/* Define the module info section */
PSP_MODULE_INFO("HELLODEMO", 0, 1, 1);
/* Define the main thread's attribute value (optional) */
PSP_MAIN_THREAD_ATTR(THREAD_ATTR_USER | THREAD_ATTR_VFPU);
/* Exit callback */
int exitCallback(int arg1, int arg2, void *common) {
sceKernelExitGame();
return 0;
}
/* Callback thread */
int callbackThread(SceSize args, void *argp) {
int cbid;
sceKernelRegisterExitCallback(cbid);
sceKernelSleepThreadCB();
return 0;
}
/* Sets up the callback thread and returns its thread id */
int setupCallbacks(void) {
int thid = 0;
thid = sceKernelCreateThread("update_thread", callbackThread, 0x11, 0xFA0, 0, 0);
if (thid >= 0) {
sceKernelStartThread(thid, 0, 0);
}
return thid;
}
int main()
{
using namespace std;
printf("Hello WORLD!");
return 0;
}
Last edited by pspeters : 07-31-2006 at 05:01 PM.
|