mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-01 14:58:14 +00:00
Logging API change (refactor) (#19324)
* Rename LogType to Log * Explicitly use the Log:: enum when logging. Allows for autocomplete when editing. * Mac/ARM64 buildfix * Do the same with the hle result log macros * Rename the log names to mixed case while at it. * iOS buildfix * Qt buildfix attempt, ARM32 buildfix
This commit is contained in:
1 parent
ae3ff686f0
commit
e01ca5b057
393 files changed
+6198
-6193
No files matched your search
@@ -35,13 +35,13 @@ static const char *ppsspp_app_id = "423397985041383434";
|
||||
#ifdef ENABLE_DISCORD
|
||||
// No context argument? What?
|
||||
static void handleDiscordError(int errCode, const char *message) {
|
||||
ERROR_LOG(SYSTEM, "Discord error code %d: '%s'", errCode, message);
|
||||
ERROR_LOG(Log::System, "Discord error code %d: '%s'", errCode, message);
|
||||
}
|
||||
#endif
|
||||
|
||||
Discord::~Discord() {
|
||||
if (initialized_) {
|
||||
ERROR_LOG(SYSTEM, "Discord destructor running though g_Discord.Shutdown() has not been called.");
|
||||
ERROR_LOG(Log::System, "Discord destructor running though g_Discord.Shutdown() has not been called.");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -57,7 +57,7 @@ void Discord::Init() {
|
||||
DiscordEventHandlers eventHandlers{};
|
||||
eventHandlers.errored = &handleDiscordError;
|
||||
Discord_Initialize(ppsspp_app_id, &eventHandlers, 0, nullptr);
|
||||
INFO_LOG(SYSTEM, "Discord connection initialized");
|
||||
INFO_LOG(Log::System, "Discord connection initialized");
|
||||
#endif
|
||||
|
||||
initialized_ = true;
|
||||
|
||||
Reference in new issue
Block a user