Skip to content

Commit

Permalink
v2.10.1
Browse files Browse the repository at this point in the history
  • Loading branch information
TechStudent10 committed Mar 29, 2024
1 parent 9730dad commit d27b7f4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion mod.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"geode": "2.0.0",
"version": "v2.10.0",
"version": "v2.10.1",
"id": "techstudent10.discord_rich_presence",
"name": "Discord Rich Presence",
"developer": "TechStudent10",
Expand Down
2 changes: 1 addition & 1 deletion src/CustomPresense.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ void gdrpc::GDRPC::updateDiscordRP(
} else {
discordPresence.largeImageKey = largeImage.c_str();
}
if (isIdling) {
if (isIdling && Mod::get()->getSettingValue<bool>("idling")) {
discordPresence.details = "Idling";
if (shouldShowSensitive) {
discordPresence.largeImageText = fmt::format("{} (playing on {})", gm->m_playerName, GEODE_PLATFORM_NAME).c_str();
Expand Down
1 change: 1 addition & 0 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -583,6 +583,7 @@ class $modify(GJShopLayer) {
class $modify(GJGarageLayer) {
void onShards(CCObject* sender) {
rpc->updateDiscordRP(MODID, "Browsing Menus", "Checking out shards");
GJGarageLayer::onShards(sender);
}
};

Expand Down

0 comments on commit d27b7f4

Please sign in to comment.