Веб-сайт самохостера Lotigara

summaryrefslogtreecommitdiff
path: root/source/application/StarPlatformServices_pc.cpp
diff options
context:
space:
mode:
authorKae <80987908+Novaenia@users.noreply.github.com>2024-02-29 14:47:10 +1100
committerKae <80987908+Novaenia@users.noreply.github.com>2024-02-29 14:47:10 +1100
commit33d696d505e0d5a3716deb72e0e377015edd0d02 (patch)
tree4a3558ad15bf21395285cbbbbe333cebecedc0d1 /source/application/StarPlatformServices_pc.cpp
parent4534172c2f49fb670b173b3d77a1588abba2431d (diff)
pointless commit to run checks
I shouldn't have skipped CI on the prev commit :V
Diffstat (limited to 'source/application/StarPlatformServices_pc.cpp')
-rw-r--r--source/application/StarPlatformServices_pc.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/source/application/StarPlatformServices_pc.cpp b/source/application/StarPlatformServices_pc.cpp
index 433d2da..5aafa8e 100644
--- a/source/application/StarPlatformServices_pc.cpp
+++ b/source/application/StarPlatformServices_pc.cpp
@@ -43,26 +43,26 @@ PcPlatformServicesState::PcPlatformServicesState()
discord::User user;
auto res = discordCore->UserManager().GetCurrentUser(&user);
if (res != discord::Result::Ok)
- Logger::error("Could not get current discord user. (err {})", (int)res);
+ Logger::error("Could not get current Discord user. (err {})", (int)res);
else
discordCurrentUser = user;
});
} else {
- Logger::error("Failed to instantiate discord core (err {})", (int)res);
+ Logger::error("Failed to instantiate Discord core (err {})", (int)res);
}
if (discordAvailable) {
MutexLocker locker(discordMutex);
discordCore->SetLogHook(discord::LogLevel::Info, [](discord::LogLevel level, char const* msg) {
if (level == discord::LogLevel::Debug)
- Logger::debug("[DISCORD]: {}", msg);
+ Logger::debug("[Discord]: {}", msg);
else if (level == discord::LogLevel::Error)
- Logger::debug("[DISCORD]: {}", msg);
+ Logger::debug("[Discord]: {}", msg);
else if (level == discord::LogLevel::Info)
- Logger::info("[DISCORD]: {}", msg);
+ Logger::info("[Discord]: {}", msg);
else if (level == discord::LogLevel::Warn)
- Logger::warn("[DISCORD]: {}", msg);
+ Logger::warn("[Discord]: {}", msg);
});
discordEventShutdown = false;
discordEventThread = Thread::invoke("PcPlatformServices::discordEventThread", [this]() {
@@ -138,7 +138,7 @@ PcPlatformServicesUPtr PcPlatformServices::create([[maybe_unused]] String const&
#ifdef STAR_ENABLE_DISCORD_INTEGRATION
MutexLocker discordLocker(services->m_state->discordMutex);
if (services->m_state->discordAvailable) {
- Logger::debug("Registering starbound to discord at path: {}", path);
+ Logger::debug("Registering Starbound to Discord at path: {}", path);
services->m_state->discordCore->ActivityManager().RegisterCommand(path.utf8Ptr());
}
#endif