using System; using System.Diagnostics; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.Versioning; using BepInEx; using Colossal.PSI.Steamworks; using HarmonyLib; [assembly: CompilationRelaxations(8)] [assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)] [assembly: Debuggable(DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)] [assembly: TargetFramework(".NETStandard,Version=v2.1", FrameworkDisplayName = ".NET Standard 2.1")] [assembly: AssemblyCompany("CSL2SteamPrivacy")] [assembly: AssemblyConfiguration("Release")] [assembly: AssemblyCopyright("Copyright © johnytoxic 2023")] [assembly: AssemblyDescription("Disables the Rich Presences for your Steam friendstlist when playing Cities: Skylines 2")] [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: AssemblyInformationalVersion("1.0.0+a5b7edd0eb477f148457b9271ac93e2600c54e3a")] [assembly: AssemblyProduct("CSL2SteamPrivacy")] [assembly: AssemblyTitle("Steam Privacy Mod")] [assembly: AssemblyVersion("1.0.0.0")] namespace CSL2SteamPrivacy; [HarmonyPatch(typeof(SteamworksPlatform), "SetRichPresence", new Type[] { typeof(string) })] [HarmonyPatch(typeof(SteamworksPlatform), "SetRichPresence", new Type[] { typeof(string), typeof(string) })] public class SetRichPresencePatch { private static bool Prefix() { return false; } } [BepInPlugin("net.johnytoxic.CSL2SteamPrivacy", "Steam Privacy Mod", "1.0.0")] public class SteamPrivacyMod : BaseUnityPlugin { private void Awake() { //IL_0005: Unknown result type (might be due to invalid IL or missing references) new Harmony("net.johnytoxic.CSL2SteamPrivacy").PatchAll(); } }