D
Deleted User
Guest
Quoted for truth.
Code:
//IM and system memory allocation here.
unsigned int coreinit_handle;
OSDynLoad_Acquire("coreinit.rpl", &coreinit_handle);
void (*OSScreenInit)(void);
void (*OSScreenFlipBuffersEx)(int bufferNum);
void (*OSScreenPutFontEx)(int bufferNum, uint32_t posX, uint32_t posY, const char *str);
OSDynLoad_FindExport(coreinit_handle, 0, "OSScreenInit", &OSScreenInit);
OSDynLoad_FindExport(coreinit_handle, 0, "OSScreenPutFontEx", &OSScreenPutFontEx);
OSDynLoad_FindExport(coreinit_handle, 0, "OSScreenFlipBuffersEx", &OSScreenFlipBuffersEx);
OSScreenInit();
OSScreenPutFontEx(1, 0, 0, "Hello world :D");
OSScreenFlipBuffersEx(1);
The first 8 lines are just initialization.
Last edited by ,











