From ac9af46bd69ce6517e249439eba078ebfd71dfff Mon Sep 17 00:00:00 2001 From: NotAKidoS <37721153+NotAKidoS@users.noreply.github.com> Date: Wed, 15 Jan 2025 16:42:27 -0600 Subject: [PATCH] MutualMute: Stole name idea, now it's MutualMute --- {TwoWayMute => MutualMute}/Main.cs | 6 +++--- .../MutualMute.csproj | 1 + .../Properties/AssemblyInfo.cs | 16 ++++++++-------- {TwoWayMute => MutualMute}/README.md | 4 +++- {TwoWayMute => MutualMute}/format.json | 16 ++++++++-------- 5 files changed, 23 insertions(+), 20 deletions(-) rename {TwoWayMute => MutualMute}/Main.cs (84%) rename TwoWayMute/TwoWayMute.csproj => MutualMute/MutualMute.csproj (86%) rename {TwoWayMute => MutualMute}/Properties/AssemblyInfo.cs (74%) rename {TwoWayMute => MutualMute}/README.md (84%) rename {TwoWayMute => MutualMute}/format.json (55%) diff --git a/TwoWayMute/Main.cs b/MutualMute/Main.cs similarity index 84% rename from TwoWayMute/Main.cs rename to MutualMute/Main.cs index 8d6de3e..d02924b 100644 --- a/TwoWayMute/Main.cs +++ b/MutualMute/Main.cs @@ -3,16 +3,16 @@ using ABI_RC.Systems.Communications.Audio.Components; using HarmonyLib; using MelonLoader; -namespace NAK.TwoWayMute; +namespace NAK.MutualMute; -public class TwoWayMuteMod : MelonMod +public class MutualMuteMod : MelonMod { public override void OnInitializeMelon() { HarmonyInstance.Patch( typeof(Comms_ParticipantPipeline).GetMethod(nameof(Comms_ParticipantPipeline.SetFlowControlState), BindingFlags.NonPublic | BindingFlags.Instance), - prefix: new HarmonyMethod(typeof(TwoWayMuteMod).GetMethod(nameof(OnSetFlowControlState), + prefix: new HarmonyMethod(typeof(MutualMuteMod).GetMethod(nameof(OnSetFlowControlState), BindingFlags.NonPublic | BindingFlags.Static)) ); } diff --git a/TwoWayMute/TwoWayMute.csproj b/MutualMute/MutualMute.csproj similarity index 86% rename from TwoWayMute/TwoWayMute.csproj rename to MutualMute/MutualMute.csproj index 4e44ed3..267718d 100644 --- a/TwoWayMute/TwoWayMute.csproj +++ b/MutualMute/MutualMute.csproj @@ -2,6 +2,7 @@ net48 + TwoWayMute diff --git a/TwoWayMute/Properties/AssemblyInfo.cs b/MutualMute/Properties/AssemblyInfo.cs similarity index 74% rename from TwoWayMute/Properties/AssemblyInfo.cs rename to MutualMute/Properties/AssemblyInfo.cs index 0c53769..6db6d18 100644 --- a/TwoWayMute/Properties/AssemblyInfo.cs +++ b/MutualMute/Properties/AssemblyInfo.cs @@ -1,20 +1,20 @@ -using NAK.TwoWayMute.Properties; +using NAK.MutualMute.Properties; using MelonLoader; using System.Reflection; [assembly: AssemblyVersion(AssemblyInfoParams.Version)] [assembly: AssemblyFileVersion(AssemblyInfoParams.Version)] [assembly: AssemblyInformationalVersion(AssemblyInfoParams.Version)] -[assembly: AssemblyTitle(nameof(NAK.TwoWayMute))] +[assembly: AssemblyTitle(nameof(NAK.MutualMute))] [assembly: AssemblyCompany(AssemblyInfoParams.Author)] -[assembly: AssemblyProduct(nameof(NAK.TwoWayMute))] +[assembly: AssemblyProduct(nameof(NAK.MutualMute))] [assembly: MelonInfo( - typeof(NAK.TwoWayMute.TwoWayMuteMod), - nameof(NAK.TwoWayMute), + typeof(NAK.MutualMute.MutualMuteMod), + nameof(NAK.MutualMute), AssemblyInfoParams.Version, AssemblyInfoParams.Author, - downloadLink: "https://github.com/NotAKidoS/NAK_CVR_Mods/tree/main/TwoWayMute" + downloadLink: "https://github.com/NotAKidoS/NAK_CVR_Mods/tree/main/MutualMute" )] [assembly: MelonGame("Alpha Blend Interactive", "ChilloutVR")] @@ -24,9 +24,9 @@ using System.Reflection; [assembly: MelonAuthorColor(255, 158, 21, 32)] // red [assembly: HarmonyDontPatchAll] -namespace NAK.TwoWayMute.Properties; +namespace NAK.MutualMute.Properties; internal static class AssemblyInfoParams { - public const string Version = "1.0.0"; + public const string Version = "1.0.1"; public const string Author = "NotAKidoS"; } \ No newline at end of file diff --git a/TwoWayMute/README.md b/MutualMute/README.md similarity index 84% rename from TwoWayMute/README.md rename to MutualMute/README.md index 560a022..599d292 100644 --- a/TwoWayMute/README.md +++ b/MutualMute/README.md @@ -1,9 +1,11 @@ -# TwoWayMute +# MutualMute Adjusts the self moderation muting behaviour to also prevent the muted user from hearing you. Basically- if you mute someone, they will also not be able to hear you. +#### This will work even of the other user does not have the mod installed, as it modifies the BBC Flow Control system. + --- Here is the block of text where I tell you this mod is not affiliated with or endorsed by ABI. diff --git a/TwoWayMute/format.json b/MutualMute/format.json similarity index 55% rename from TwoWayMute/format.json rename to MutualMute/format.json index a2ed4f6..e815ba1 100644 --- a/TwoWayMute/format.json +++ b/MutualMute/format.json @@ -1,12 +1,12 @@ { - "_id": -1, - "name": "TwoWayMute", - "modversion": "1.0.0", - "gameversion": "2024r177", + "_id": 246, + "name": "MutualMute", + "modversion": "1.0.1", + "gameversion": "2025r178", "loaderversion": "0.6.1", "modtype": "Mod", "author": "NotAKidoS", - "description": "Adjusts the self moderation muting behaviour to also prevent the muted user from hearing you.\n\nBasically- if you mute someone, they will also not be able to hear you.", + "description": "Adjusts the self moderation muting behaviour to also prevent the muted user from hearing you.\n\nBasically- if you mute someone, they will also not be able to hear you.\n-# This will work even of the other user does not have the mod installed, as it modifies the BBC Flow Control system.", "searchtags": [ "mute", "communication", @@ -16,8 +16,8 @@ "requirements": [ "None" ], - "downloadlink": "https://github.com/NotAKidoS/NAK_CVR_Mods/releases/download/r44/TwoWayMute.dll", - "sourcelink": "https://github.com/NotAKidoS/NAK_CVR_Mods/tree/main/TwoWayMute/", - "changelog": "- Initial Release", + "downloadlink": "https://github.com/NotAKidoS/NAK_CVR_Mods/releases/download/r45/MutualMute.dll", + "sourcelink": "https://github.com/NotAKidoS/NAK_CVR_Mods/tree/main/MutualMute/", + "changelog": "- Stole name idea, now it's MutualMute", "embedcolor": "#f61963" } \ No newline at end of file