Skip to content

Commit

Permalink
misc: chore: Early exit HandlePlayReport if RPC is not enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
GreemDev committed Feb 3, 2025
1 parent b2eecd2 commit 55536f5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Ryujinx/DiscordIntegrationModule.cs
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ private static void SwitchToMainState()

private static void HandlePlayReport(MessagePackObject playReport)
{
if (_discordClient is null) return;
if (!TitleIDs.CurrentApplication.Value.HasValue) return;
if (_discordPresencePlaying is null) return;

Expand Down

0 comments on commit 55536f5

Please sign in to comment.