Skip to content

Commit 72754e7

Browse files
committed
Added Reloaded largeimage key and text fields and made default update set to misc map.
1 parent 3d5da34 commit 72754e7

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

discordrpc.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -306,6 +306,10 @@ bool CDiscordIntegration::StartDiscordRPC()
306306
RPC.largeImageKey = "p2mmtaglogo";
307307
RPC.largeImageText = "Aperture Tag";
308308
break;
309+
case (PORTAL_RELOADED):
310+
RPC.largeImageKey = "p2mmreloadedlogo";
311+
RPC.largeImageText = "Portal Reloaded";
312+
break;
309313
case (DIVINITY):
310314
RPC.largeImageKey = "p2mmdivinitylogo";
311315
RPC.largeImageText = "Portal: Divinity";
@@ -451,6 +455,9 @@ void CDiscordIntegration::UpdateDiscordRPC()
451455
V_strcat(smallImageText, map->chaptername, 128);
452456
break;
453457
default:
458+
V_strcat(details, CURMAPFILENAME, 128);
459+
V_strcat(smallImageKey, "miscmap", 32);
460+
V_strcat(smallImageText, CURMAPFILENAME, 128);
454461
break;
455462
}
456463

discordrpc.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class CDiscordIntegration {
2020
void SendWebHookEmbed(std::string title = "Unknown", std::string description = "*Insert Yapping Here*", int color = EMBED_COLOR_PLAYER, bool hasFooter = true);
2121
bool StartDiscordRPC();
2222
void ShutdownDiscordRPC();
23-
void UpdateDiscordRPC();
23+
static void UpdateDiscordRPC();
2424

2525
bool rpcRunning;
2626
};

0 commit comments

Comments
 (0)