mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-12-02 18:53:58 +01:00
Getting really close to getting rid of base/logging.h now.
Qt buildfix
This commit is contained in:
1 parent
b22083e7a6
commit
80e0f85332
21 files changed
+113
-199
No files matched your search
@@ -18,6 +18,7 @@
|
||||
#include "ppsspp_config.h"
|
||||
|
||||
#include <algorithm>
|
||||
#include <cstring>
|
||||
|
||||
#include "util/text/utf8.h"
|
||||
#include "LogManager.h"
|
||||
@@ -46,6 +47,9 @@ void GenericLog(LogTypes::LOG_LEVELS level, LogTypes::LOG_TYPE type, const char
|
||||
LogManager *instance = LogManager::GetInstance();
|
||||
if (instance) {
|
||||
instance->Log(level, type, file, line, fmt, args);
|
||||
} else {
|
||||
// Fall back to printf if we're before the log manager has been initialized.
|
||||
vprintf(fmt, args);
|
||||
}
|
||||
va_end(args);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user