From 859183a849be1fb723b96ed8f041fb13ecbd36a8 Mon Sep 17 00:00:00 2001 From: XtraCube <72575280+XtraCube@users.noreply.github.com> Date: Wed, 21 May 2025 18:34:50 -0400 Subject: [PATCH] update reasoning --- Reactor/Networking/Patches/HttpPatches.cs | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Reactor/Networking/Patches/HttpPatches.cs b/Reactor/Networking/Patches/HttpPatches.cs index 0f15d32..4176922 100644 --- a/Reactor/Networking/Patches/HttpPatches.cs +++ b/Reactor/Networking/Patches/HttpPatches.cs @@ -56,8 +56,9 @@ internal static class HttpPatches { // new Uri() is necessary because uri property got stripped. var path = new Uri(__instance.url).AbsolutePath; - // Innersloth changed /api/games to /api/games/filtered - // We may want to keep support for /api/games though. + // Public lobby menu uses /api/games/filtered, code requests use /api/games/code, + // creating a game uses /api/games. + // So we need to match everything that contains /api/games if (path.Contains("/api/games")) { Debug($"{__instance.method} {path}"); @@ -69,8 +70,9 @@ internal static class HttpPatches { // new Uri() is necessary because uri property got stripped. var path = new Uri(__instance.url).AbsolutePath; - // Innersloth changed /api/games to /api/games/filtered - // We may want to keep support for /api/games though. + // Public lobby menu uses /api/games/filtered, code requests use /api/games/code, + // creating a game uses /api/games. + // So we need to match everything that contains /api/games if (path.Contains("/api/games")) { __result.add_completed((Action) (_ =>