From 7d8316b0da51b51cb6ffe6ebf79a014e07e3ef78 Mon Sep 17 00:00:00 2001 From: "Derek \"Turtle\" Roe" Date: Wed, 17 Mar 2021 03:34:17 -0500 Subject: [PATCH] Update DiscordRPC.cpp Fix title case, add spacing, add newline, rom > ROM --- Source/Project64/UserInterface/DiscordRPC.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/Source/Project64/UserInterface/DiscordRPC.cpp b/Source/Project64/UserInterface/DiscordRPC.cpp index 2ffc6050e..041f0d033 100644 --- a/Source/Project64/UserInterface/DiscordRPC.cpp +++ b/Source/Project64/UserInterface/DiscordRPC.cpp @@ -5,7 +5,7 @@ #define UNIX_TIME_START 0x019DB1DED53E8000 #define TICKS_PER_SECOND 10000000 -//Discord Project64 App ID +// Discord Project64 app ID #define PJ64_DISCORD_APPID "704794684387491891" void CDiscord::Init() @@ -38,14 +38,14 @@ static stdstr GetTitle() void CDiscord::Update(bool bHaveGame) { - //Variables we use later - //title uses the Rdb_GoodName to display a proper game name over DiscordRPC - //artwork uses the Header of the rom to easily add game pictures through the discord developer panel using the ID above + // Variables we use later + // Title uses the Rdb_GoodName to display a proper game name over DiscordRPC + // Artwork uses the header of the ROM to easily add game images through the Discord developer panel using the ID above stdstr title = bHaveGame ? GetTitle() : ""; stdstr artwork = bHaveGame ? g_Settings->LoadStringVal(Rdb_RPCKey) : ""; - //Load Game Into DiscordRPC - DiscordRichPresence discordPresence = {}; //activates DiscordRPC + //Load game into DiscordRPC + DiscordRichPresence discordPresence = {}; // Activates DiscordRPC if (artwork.empty()) { discordPresence.largeImageKey = "pj64_icon"; @@ -61,7 +61,7 @@ void CDiscord::Update(bool bHaveGame) discordPresence.details = title.empty() ? "Not in-game" : title.c_str(); discordPresence.startTimestamp = Timestamp(); - Discord_UpdatePresence(&discordPresence); //end DiscordRPC + Discord_UpdatePresence(&discordPresence); // End DiscordRPC } int64_t CDiscord::Timestamp() @@ -74,4 +74,4 @@ int64_t CDiscord::Timestamp() li.HighPart = ft.dwHighDateTime; return (li.QuadPart - UNIX_TIME_START) / TICKS_PER_SECOND; -} \ No newline at end of file +}