mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 14:19:46 -06:00
Allow C code to use the Dolphin log manager so that Wiiuse text output
can go to the log window like with other subsystems. Remove a Wiiuse dependency on libm from when it was a shared library. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5885 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
@ -23,13 +23,26 @@
|
||||
#include "Thread.h"
|
||||
#include "FileUtil.h"
|
||||
|
||||
void GenericLog(LogTypes::LOG_LEVELS level, LogTypes::LOG_TYPE type,
|
||||
const char *file, int line, const char* fmt, ...)
|
||||
void GenericLogC(int level, int type,
|
||||
const char *file, int line, const char* fmt, ...)
|
||||
{
|
||||
va_list args;
|
||||
va_start(args, fmt);
|
||||
if (LogManager::GetInstance())
|
||||
LogManager::GetInstance()->Log(level, type, file, line, fmt, args);
|
||||
LogManager::GetInstance()->Log(
|
||||
(LogTypes::LOG_LEVELS)level, (LogTypes::LOG_TYPE)type,
|
||||
file, line, fmt, args);
|
||||
va_end(args);
|
||||
}
|
||||
|
||||
void GenericLog(LogTypes::LOG_LEVELS level, LogTypes::LOG_TYPE type,
|
||||
const char *file, int line, const char* fmt, ...)
|
||||
{
|
||||
va_list args;
|
||||
va_start(args, fmt);
|
||||
if (LogManager::GetInstance())
|
||||
LogManager::GetInstance()->Log(level, type,
|
||||
file, line, fmt, args);
|
||||
va_end(args);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user