16 lines
356 B
C#
16 lines
356 B
C#
|
using HarmonyLib;
|
|||
|
using System;
|
|||
|
|
|||
|
namespace RoomCodeObscurer.Patches
|
|||
|
{
|
|||
|
[HarmonyPatch(typeof(DiscordManager), nameof(DiscordManager.SetPresence))]
|
|||
|
internal class DiscordManagerSetPrecencePatch
|
|||
|
{
|
|||
|
static void Prefix(ref string state, ref string detail)
|
|||
|
{
|
|||
|
if (detail == "Playing Multiplayer")
|
|||
|
state = CopyCodeMP.GetCodeDisplay(state);
|
|||
|
}
|
|||
|
}
|
|||
|
}
|