mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-08 16:01:42 +12:00
23 lines
648 B
C++
23 lines
648 B
C++
#include "stdafx.h"
|
|
#include "rpcs3/Ini.h"
|
|
#include "Utilities/Log.h"
|
|
#include "Emu/System.h"
|
|
#include "Emu/state.h"
|
|
#include "LogBase.h"
|
|
|
|
bool LogBase::CheckLogging() const
|
|
{
|
|
return Ini.HLELogging.GetValue() || m_logging;
|
|
}
|
|
|
|
void LogBase::LogOutput(LogType type, std::string text) const
|
|
{
|
|
switch (type)
|
|
{
|
|
case LogNotice: LOG_NOTICE(HLE, GetName() + ": " + text); break;
|
|
case LogSuccess: LOG_SUCCESS(HLE, GetName() + ": " + text); break;
|
|
case LogWarning: LOG_WARNING(HLE, GetName() + ": " + text); break;
|
|
case LogError: LOG_ERROR(HLE, GetName() + ": " + text); break;
|
|
case LogTodo: LOG_ERROR(HLE, GetName() + " TODO: " + text); break;
|
|
}
|
|
}
|