Kaynağa Gözat

misc: chore: Early exit HandlePlayReport if RPC is not enabled

Evan Husted 1 yıl önce
ebeveyn
işleme
55536f5d78
1 değiştirilmiş dosya ile 1 ekleme ve 0 silme
  1. 1 0
      src/Ryujinx/DiscordIntegrationModule.cs

+ 1 - 0
src/Ryujinx/DiscordIntegrationModule.cs

@@ -131,6 +131,7 @@ namespace Ryujinx.Ava
 
         private static void HandlePlayReport(MessagePackObject playReport)
         {
+            if (_discordClient is null) return;
             if (!TitleIDs.CurrentApplication.Value.HasValue) return;
             if (_discordPresencePlaying is null) return;