diff --git a/include/logger.hpp b/include/logger.hpp index 82d90410..25074aea 100644 --- a/include/logger.hpp +++ b/include/logger.hpp @@ -2,6 +2,10 @@ #include #include +#ifdef __ANDROID__ +#include +#endif + namespace Log { // Our logger class template @@ -11,8 +15,12 @@ namespace Log { if constexpr (!enabled) return; std::va_list args; - va_start(args, fmt); - std::vprintf(fmt, args); + va_start(args, fmt); + #ifdef __ANDROID__ + __android_log_vprint(ANDROID_LOG_DEFAULT, "Panda3DS", fmt, args); + #else + std::vprintf(fmt, args); + #endif va_end(args); } };