From a86038020dcb468fe6aa9298072ab756cd93a399 Mon Sep 17 00:00:00 2001 From: JohnCorby Date: Fri, 9 Jun 2023 22:50:09 -0700 Subject: [PATCH] rename --- SteamRerouter/ExeSide/{Socket.cs => IpcClient.cs} | 2 +- SteamRerouter/ExeSide/Program.cs | 4 ++-- SteamRerouter/ModSide/Interop.cs | 6 +++--- SteamRerouter/ModSide/{Socket.cs => IpcServer.cs} | 2 +- SteamRerouter/ModSide/Patches.cs | 4 ++-- 5 files changed, 9 insertions(+), 9 deletions(-) rename SteamRerouter/ExeSide/{Socket.cs => IpcClient.cs} (95%) rename SteamRerouter/ModSide/{Socket.cs => IpcServer.cs} (97%) diff --git a/SteamRerouter/ExeSide/Socket.cs b/SteamRerouter/ExeSide/IpcClient.cs similarity index 95% rename from SteamRerouter/ExeSide/Socket.cs rename to SteamRerouter/ExeSide/IpcClient.cs index 71b0d17f..c680b3a3 100644 --- a/SteamRerouter/ExeSide/Socket.cs +++ b/SteamRerouter/ExeSide/IpcClient.cs @@ -8,7 +8,7 @@ namespace SteamRerouter.ExeSide; /// /// handles communication with the mod /// -public static class Socket +public static class IpcClient { private static TcpClient _tcpClient; diff --git a/SteamRerouter/ExeSide/Program.cs b/SteamRerouter/ExeSide/Program.cs index f2ff8d9e..9d16b90b 100644 --- a/SteamRerouter/ExeSide/Program.cs +++ b/SteamRerouter/ExeSide/Program.cs @@ -52,9 +52,9 @@ public static class Program return; } - Socket.Connect(port); + IpcClient.Connect(port); - Socket.Loop(); + IpcClient.Loop(); Log("stop"); SteamAPI.Shutdown(); diff --git a/SteamRerouter/ModSide/Interop.cs b/SteamRerouter/ModSide/Interop.cs index f0ffce12..cc3835a9 100644 --- a/SteamRerouter/ModSide/Interop.cs +++ b/SteamRerouter/ModSide/Interop.cs @@ -19,7 +19,7 @@ public class Interop : MonoBehaviour Log("awake"); Harmony.CreateAndPatchAll(typeof(Patches)); - var port = Socket.Listen(); + var port = IpcServer.Listen(); var processPath = Path.Combine( Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location)!, @@ -46,14 +46,14 @@ public class Interop : MonoBehaviour CreateNoWindow = false //true }); - Socket.Accept(); + IpcServer.Accept(); } private void OnDestroy() { Log("destroy"); - Socket.Quit(); + IpcServer.Quit(); _process.WaitForExit(); _process.Dispose(); } diff --git a/SteamRerouter/ModSide/Socket.cs b/SteamRerouter/ModSide/IpcServer.cs similarity index 97% rename from SteamRerouter/ModSide/Socket.cs rename to SteamRerouter/ModSide/IpcServer.cs index 8d004dc7..8a81b5dc 100644 --- a/SteamRerouter/ModSide/Socket.cs +++ b/SteamRerouter/ModSide/IpcServer.cs @@ -7,7 +7,7 @@ namespace SteamRerouter.ModSide; /// /// handles communication with the exe /// -public static class Socket +public static class IpcServer { private static TcpListener _listener; private static TcpClient _tcpClient; diff --git a/SteamRerouter/ModSide/Patches.cs b/SteamRerouter/ModSide/Patches.cs index 8de915ff..b22f248c 100644 --- a/SteamRerouter/ModSide/Patches.cs +++ b/SteamRerouter/ModSide/Patches.cs @@ -9,7 +9,7 @@ public static class Patches [HarmonyPatch(typeof(SteamEntitlementRetriever), nameof(SteamEntitlementRetriever.GetOwnershipStatus))] private static bool SteamEntitlementRetriever_GetOwnershipStatus(out EntitlementsManager.AsyncOwnershipStatus __result) { - __result = Socket.SteamEntitlementRetriever_GetOwnershipStatus(); + __result = IpcServer.SteamEntitlementRetriever_GetOwnershipStatus(); return false; } @@ -17,7 +17,7 @@ public static class Patches [HarmonyPatch(typeof(Achievements), nameof(Achievements.Earn))] private static bool Achievements_Earn(Achievements.Type type) { - Socket.Achievements_Earn(type); + IpcServer.Achievements_Earn(type); return false; } }