LoggingModule/source/main.cpp

13 lines
357 B
C++
Raw Normal View History

2021-11-06 13:44:39 +01:00
#include <coreinit/debug.h>
2023-03-17 16:34:51 +01:00
#include <wums.h>
2021-11-06 13:44:39 +01:00
WUMS_MODULE_EXPORT_NAME("homebrew_logging");
2023-03-17 16:34:51 +01:00
#define OSConsoleWriteEx ((void (*)(uint32_t, uint32_t, const char *, size_t))(0x101C400 + 0x10cf0))
2021-11-06 17:08:04 +01:00
2021-11-06 13:44:39 +01:00
bool WUMSLogWrite(const char *str, size_t size) {
2023-03-17 16:34:51 +01:00
OSConsoleWriteEx(0xFFFFFFFF, 0xFFFFFFFF, str, size);
return true;
2021-11-06 13:44:39 +01:00
}
WUMS_EXPORT_FUNCTION(WUMSLogWrite);