I can't get that to work. My code looks like this (I got some parts from the osscreenexample template, but the whole thing didn't work for some friends, so I wnated to do it myself and see whether that works):OSScreenPutFontEx()
loader.c
Code:
#include "loader.h"
void _start()
{
unsigned int coreinit_handle;
OSDynLoad_Acquire("coreinit.rpl", &coreinit_handle);
/****************************> External Prototypes <****************************/
void(*_Exit)();
//OSScreen functions
void(*OSScreenInit)();
void(*OSScreenPutFontEx)(int bufferNum, uint32_t posX, uint32_t posY, const char *str);
/****************************> Exports <****************************/
OSDynLoad_FindExport(coreinit_handle, 0, "_Exit", &_Exit);
//OSScreen functions
OSDynLoad_FindExport(coreinit_handle, 0, "OSScreenInit", &OSScreenInit);
OSDynLoad_FindExport(coreinit_handle, 0, "OSScreenPutFontEx", &OSScreenPutFontEx);
OSScreenInit();
OSScreenPutFontEx(1, 0, 0, "Hello World!");
int wait = 0x1FFFFF;
while (wait)
--wait;
_Exit;
}
loader.h
Code:
#ifndef LOADER_H
#define LOADER_H
#include "../../../libwiiu/src/coreinit.h"
#include "../../../libwiiu/src/vpad.h"
#include "../../../libwiiu/src/types.h"
#include "../../../libwiiu/src/draw.h"
void _start();
#endif /* LOADER_H */
But when I run it on my WiiU, I just get a messed up screen