44
55#include " discord.h"
66
7- #include " enclog.h"
8- #include " raylib.h"
9-
107#include < array>
118#include < ctime>
129#include < iostream>
@@ -20,29 +17,6 @@ void Encore::Discord::Initialize() {
2017 Initialized = false ;
2118 return ;
2219 }
23- core->SetLogHook (
24- discord::LogLevel::Debug, [](discord::LogLevel level, const char * message) {
25- TraceLogLevel LogLevel = LOG_DEBUG;
26- switch (level) {
27- case discord::LogLevel::Debug: {
28- LogLevel = LOG_DEBUG;
29- break ;
30- }
31- case discord::LogLevel::Info: {
32- LogLevel = LOG_INFO;
33- break ;
34- }
35- case discord::LogLevel::Warn: {
36- LogLevel = LOG_WARNING;
37- break ;
38- }
39- case discord::LogLevel::Error: {
40- LogLevel = LOG_ERROR;
41- break ;
42- }
43- }
44- EncoreLog (LogLevel, TextFormat (" Discord: %s" , message));
45- });
4620 const auto p0 = std::chrono::system_clock::now ();
4721 startTime = std::chrono::duration_cast<std::chrono::seconds>(p0.time_since_epoch ()).count ();
4822 /*
@@ -77,7 +51,7 @@ void Encore::Discord::DiscordUpdatePresence(const std::string &title, const std:
7751 activity.SetState (" Playing solo" );
7852 }
7953 else {
80- activity.SetState (TextFormat ( " In a band (%01i/4) " , players) );
54+ activity.SetState (" In a band" );
8155 }
8256 activity.SetDetails ((details).c_str ());
8357 activity.SetName (" encore" );
@@ -113,7 +87,7 @@ void Encore::Discord::DiscordUpdatePresenceSong(
11387 activity.SetState (" Playing solo" );
11488 }
11589 else {
116- activity.SetState (TextFormat ( " In a band (%01i/4) " , length) );
90+ activity.SetState (" In a band" );
11791 }
11892
11993 activity.SetName (" encore" );
0 commit comments