mirror of
https://github.com/wiiu-env/wut.git
synced 2025-01-09 20:19:25 +01:00
30 lines
398 B
C
30 lines
398 B
C
#include <coreinit/debug.h>
|
|
#include <whb/log.h>
|
|
|
|
#include <string.h>
|
|
|
|
static void
|
|
cafeLogHandler(const char * msg)
|
|
{
|
|
int length = strlen(msg);
|
|
|
|
if(msg[length-1] != '\n') {
|
|
OSReport("%s\n", msg);
|
|
}
|
|
else {
|
|
OSReport(msg);
|
|
}
|
|
}
|
|
|
|
BOOL
|
|
WHBLogCafeInit()
|
|
{
|
|
return WHBAddLogHandler(cafeLogHandler);
|
|
}
|
|
|
|
BOOL
|
|
WHBLogCafeDeinit()
|
|
{
|
|
return WHBRemoveLogHandler(cafeLogHandler);
|
|
}
|