mirror of
https://github.com/NuclearPowered/Reactor.git
synced 2026-10-20 01:46:21 +00:00
Update http patches to account for new innersloth APIs
This commit is contained in:
1 parent
c91706bd67
commit
ccade1be0e
5 files changed
+18
-14
No files matched your search
@@ -425,7 +425,7 @@
|
|||||||
"runtime.native.System.Security.Cryptography.Apple": {
|
"runtime.native.System.Security.Cryptography.Apple": {
|
||||||
"type": "Transitive",
|
"type": "Transitive",
|
||||||
"resolved": "4.3.0",
|
"resolved": "4.3.0",
|
||||||
"contentHash": "DloMk88juo0OuOWr56QG7MNchmafTLYWvABy36izkrLI5VledI0rq28KGs1i9wbpeT9NPQrx/wTf8U2vazqQ3Q==",
|
"contentHash": "jwjwlEL0Elv6gwoyaokRn12nv/JE+UW/DXJEbzhjCPvGbef36StnHKc9XaZD/rGWqYicrphZ7eumR/jdmNcjRg==",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"runtime.osx.10.10-x64.runtime.native.System.Security.Cryptography.Apple": "4.3.0"
|
"runtime.osx.10.10-x64.runtime.native.System.Security.Cryptography.Apple": "4.3.0"
|
||||||
}
|
}
|
||||||
@@ -460,7 +460,7 @@
|
|||||||
"runtime.osx.10.10-x64.runtime.native.System.Security.Cryptography.Apple": {
|
"runtime.osx.10.10-x64.runtime.native.System.Security.Cryptography.Apple": {
|
||||||
"type": "Transitive",
|
"type": "Transitive",
|
||||||
"resolved": "4.3.0",
|
"resolved": "4.3.0",
|
||||||
"contentHash": "kVXCuMTrTlxq4XOOMAysuNwsXWpYeboGddNGpIgNSZmv1b6r/s/DPk0fYMB7Q5Qo4bY68o48jt4T4y5BVecbCQ=="
|
"contentHash": "Kh9W4agE0r/hK8AX1LvyQI2NrKHBL8pO0gRoDTdDb0LL6Ta1Z2OtFx3lOaAE0ZpCUc/dt9Wzs3rA7a3IsKdOVA=="
|
||||||
},
|
},
|
||||||
"runtime.osx.10.10-x64.runtime.native.System.Security.Cryptography.OpenSsl": {
|
"runtime.osx.10.10-x64.runtime.native.System.Security.Cryptography.OpenSsl": {
|
||||||
"type": "Transitive",
|
"type": "Transitive",
|
||||||
@@ -570,7 +570,7 @@
|
|||||||
"System.Collections.NonGeneric": {
|
"System.Collections.NonGeneric": {
|
||||||
"type": "Transitive",
|
"type": "Transitive",
|
||||||
"resolved": "4.3.0",
|
"resolved": "4.3.0",
|
||||||
"contentHash": "prtjIEMhGUnQq6RnPEYLpFt8AtLbp9yq2zxOSrY7KJJZrw25Fi97IzBqY7iqssbM61Ek5b8f3MG/sG1N2sN5KA==",
|
"contentHash": "LE/oChpRvkSi3U25u0KnJcI44JeDZ1QJCyN4qFDx2uusEypdqR24w7lKYw21eYe5esuCBuc862wRmpF63Yy1KQ==",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"System.Diagnostics.Debug": "4.3.0",
|
"System.Diagnostics.Debug": "4.3.0",
|
||||||
"System.Globalization": "4.3.0",
|
"System.Globalization": "4.3.0",
|
||||||
|
|||||||
@@ -253,7 +253,7 @@
|
|||||||
"runtime.native.System.Security.Cryptography.Apple": {
|
"runtime.native.System.Security.Cryptography.Apple": {
|
||||||
"type": "Transitive",
|
"type": "Transitive",
|
||||||
"resolved": "4.3.0",
|
"resolved": "4.3.0",
|
||||||
"contentHash": "DloMk88juo0OuOWr56QG7MNchmafTLYWvABy36izkrLI5VledI0rq28KGs1i9wbpeT9NPQrx/wTf8U2vazqQ3Q==",
|
"contentHash": "jwjwlEL0Elv6gwoyaokRn12nv/JE+UW/DXJEbzhjCPvGbef36StnHKc9XaZD/rGWqYicrphZ7eumR/jdmNcjRg==",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"runtime.osx.10.10-x64.runtime.native.System.Security.Cryptography.Apple": "4.3.0"
|
"runtime.osx.10.10-x64.runtime.native.System.Security.Cryptography.Apple": "4.3.0"
|
||||||
}
|
}
|
||||||
@@ -288,7 +288,7 @@
|
|||||||
"runtime.osx.10.10-x64.runtime.native.System.Security.Cryptography.Apple": {
|
"runtime.osx.10.10-x64.runtime.native.System.Security.Cryptography.Apple": {
|
||||||
"type": "Transitive",
|
"type": "Transitive",
|
||||||
"resolved": "4.3.0",
|
"resolved": "4.3.0",
|
||||||
"contentHash": "kVXCuMTrTlxq4XOOMAysuNwsXWpYeboGddNGpIgNSZmv1b6r/s/DPk0fYMB7Q5Qo4bY68o48jt4T4y5BVecbCQ=="
|
"contentHash": "Kh9W4agE0r/hK8AX1LvyQI2NrKHBL8pO0gRoDTdDb0LL6Ta1Z2OtFx3lOaAE0ZpCUc/dt9Wzs3rA7a3IsKdOVA=="
|
||||||
},
|
},
|
||||||
"runtime.osx.10.10-x64.runtime.native.System.Security.Cryptography.OpenSsl": {
|
"runtime.osx.10.10-x64.runtime.native.System.Security.Cryptography.OpenSsl": {
|
||||||
"type": "Transitive",
|
"type": "Transitive",
|
||||||
@@ -388,7 +388,7 @@
|
|||||||
"System.Collections.NonGeneric": {
|
"System.Collections.NonGeneric": {
|
||||||
"type": "Transitive",
|
"type": "Transitive",
|
||||||
"resolved": "4.3.0",
|
"resolved": "4.3.0",
|
||||||
"contentHash": "prtjIEMhGUnQq6RnPEYLpFt8AtLbp9yq2zxOSrY7KJJZrw25Fi97IzBqY7iqssbM61Ek5b8f3MG/sG1N2sN5KA==",
|
"contentHash": "LE/oChpRvkSi3U25u0KnJcI44JeDZ1QJCyN4qFDx2uusEypdqR24w7lKYw21eYe5esuCBuc862wRmpF63Yy1KQ==",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"System.Diagnostics.Debug": "4.3.0",
|
"System.Diagnostics.Debug": "4.3.0",
|
||||||
"System.Globalization": "4.3.0",
|
"System.Globalization": "4.3.0",
|
||||||
|
|||||||
@@ -253,7 +253,7 @@
|
|||||||
"runtime.native.System.Security.Cryptography.Apple": {
|
"runtime.native.System.Security.Cryptography.Apple": {
|
||||||
"type": "Transitive",
|
"type": "Transitive",
|
||||||
"resolved": "4.3.0",
|
"resolved": "4.3.0",
|
||||||
"contentHash": "DloMk88juo0OuOWr56QG7MNchmafTLYWvABy36izkrLI5VledI0rq28KGs1i9wbpeT9NPQrx/wTf8U2vazqQ3Q==",
|
"contentHash": "jwjwlEL0Elv6gwoyaokRn12nv/JE+UW/DXJEbzhjCPvGbef36StnHKc9XaZD/rGWqYicrphZ7eumR/jdmNcjRg==",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"runtime.osx.10.10-x64.runtime.native.System.Security.Cryptography.Apple": "4.3.0"
|
"runtime.osx.10.10-x64.runtime.native.System.Security.Cryptography.Apple": "4.3.0"
|
||||||
}
|
}
|
||||||
@@ -288,7 +288,7 @@
|
|||||||
"runtime.osx.10.10-x64.runtime.native.System.Security.Cryptography.Apple": {
|
"runtime.osx.10.10-x64.runtime.native.System.Security.Cryptography.Apple": {
|
||||||
"type": "Transitive",
|
"type": "Transitive",
|
||||||
"resolved": "4.3.0",
|
"resolved": "4.3.0",
|
||||||
"contentHash": "kVXCuMTrTlxq4XOOMAysuNwsXWpYeboGddNGpIgNSZmv1b6r/s/DPk0fYMB7Q5Qo4bY68o48jt4T4y5BVecbCQ=="
|
"contentHash": "Kh9W4agE0r/hK8AX1LvyQI2NrKHBL8pO0gRoDTdDb0LL6Ta1Z2OtFx3lOaAE0ZpCUc/dt9Wzs3rA7a3IsKdOVA=="
|
||||||
},
|
},
|
||||||
"runtime.osx.10.10-x64.runtime.native.System.Security.Cryptography.OpenSsl": {
|
"runtime.osx.10.10-x64.runtime.native.System.Security.Cryptography.OpenSsl": {
|
||||||
"type": "Transitive",
|
"type": "Transitive",
|
||||||
@@ -388,7 +388,7 @@
|
|||||||
"System.Collections.NonGeneric": {
|
"System.Collections.NonGeneric": {
|
||||||
"type": "Transitive",
|
"type": "Transitive",
|
||||||
"resolved": "4.3.0",
|
"resolved": "4.3.0",
|
||||||
"contentHash": "prtjIEMhGUnQq6RnPEYLpFt8AtLbp9yq2zxOSrY7KJJZrw25Fi97IzBqY7iqssbM61Ek5b8f3MG/sG1N2sN5KA==",
|
"contentHash": "LE/oChpRvkSi3U25u0KnJcI44JeDZ1QJCyN4qFDx2uusEypdqR24w7lKYw21eYe5esuCBuc862wRmpF63Yy1KQ==",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"System.Diagnostics.Debug": "4.3.0",
|
"System.Diagnostics.Debug": "4.3.0",
|
||||||
"System.Globalization": "4.3.0",
|
"System.Globalization": "4.3.0",
|
||||||
|
|||||||
@@ -55,7 +55,9 @@ internal static class HttpPatches
|
|||||||
public static void Prefix(UnityWebRequest __instance)
|
public static void Prefix(UnityWebRequest __instance)
|
||||||
{
|
{
|
||||||
var path = __instance.uri.AbsolutePath;
|
var path = __instance.uri.AbsolutePath;
|
||||||
if (path == "/api/games")
|
// Innersloth changed /api/games to /api/games/filtered
|
||||||
|
// We may want to keep support for /api/games though.
|
||||||
|
if (path.Contains("/api/games"))
|
||||||
{
|
{
|
||||||
Debug($"{__instance.method} {path}");
|
Debug($"{__instance.method} {path}");
|
||||||
__instance.SetRequestHeader("Client-Mods", BuildHeader());
|
__instance.SetRequestHeader("Client-Mods", BuildHeader());
|
||||||
@@ -65,7 +67,9 @@ internal static class HttpPatches
|
|||||||
public static void Postfix(UnityWebRequest __instance, UnityWebRequestAsyncOperation __result)
|
public static void Postfix(UnityWebRequest __instance, UnityWebRequestAsyncOperation __result)
|
||||||
{
|
{
|
||||||
var path = __instance.uri.AbsolutePath;
|
var path = __instance.uri.AbsolutePath;
|
||||||
if (path == "/api/games")
|
// Innersloth changed /api/games to /api/games/filtered
|
||||||
|
// We may want to keep support for /api/games though.
|
||||||
|
if (path.Contains("/api/games"))
|
||||||
{
|
{
|
||||||
__result.add_completed((Action<AsyncOperation>) (_ =>
|
__result.add_completed((Action<AsyncOperation>) (_ =>
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -253,7 +253,7 @@
|
|||||||
"runtime.native.System.Security.Cryptography.Apple": {
|
"runtime.native.System.Security.Cryptography.Apple": {
|
||||||
"type": "Transitive",
|
"type": "Transitive",
|
||||||
"resolved": "4.3.0",
|
"resolved": "4.3.0",
|
||||||
"contentHash": "DloMk88juo0OuOWr56QG7MNchmafTLYWvABy36izkrLI5VledI0rq28KGs1i9wbpeT9NPQrx/wTf8U2vazqQ3Q==",
|
"contentHash": "jwjwlEL0Elv6gwoyaokRn12nv/JE+UW/DXJEbzhjCPvGbef36StnHKc9XaZD/rGWqYicrphZ7eumR/jdmNcjRg==",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"runtime.osx.10.10-x64.runtime.native.System.Security.Cryptography.Apple": "4.3.0"
|
"runtime.osx.10.10-x64.runtime.native.System.Security.Cryptography.Apple": "4.3.0"
|
||||||
}
|
}
|
||||||
@@ -288,7 +288,7 @@
|
|||||||
"runtime.osx.10.10-x64.runtime.native.System.Security.Cryptography.Apple": {
|
"runtime.osx.10.10-x64.runtime.native.System.Security.Cryptography.Apple": {
|
||||||
"type": "Transitive",
|
"type": "Transitive",
|
||||||
"resolved": "4.3.0",
|
"resolved": "4.3.0",
|
||||||
"contentHash": "kVXCuMTrTlxq4XOOMAysuNwsXWpYeboGddNGpIgNSZmv1b6r/s/DPk0fYMB7Q5Qo4bY68o48jt4T4y5BVecbCQ=="
|
"contentHash": "Kh9W4agE0r/hK8AX1LvyQI2NrKHBL8pO0gRoDTdDb0LL6Ta1Z2OtFx3lOaAE0ZpCUc/dt9Wzs3rA7a3IsKdOVA=="
|
||||||
},
|
},
|
||||||
"runtime.osx.10.10-x64.runtime.native.System.Security.Cryptography.OpenSsl": {
|
"runtime.osx.10.10-x64.runtime.native.System.Security.Cryptography.OpenSsl": {
|
||||||
"type": "Transitive",
|
"type": "Transitive",
|
||||||
@@ -388,7 +388,7 @@
|
|||||||
"System.Collections.NonGeneric": {
|
"System.Collections.NonGeneric": {
|
||||||
"type": "Transitive",
|
"type": "Transitive",
|
||||||
"resolved": "4.3.0",
|
"resolved": "4.3.0",
|
||||||
"contentHash": "prtjIEMhGUnQq6RnPEYLpFt8AtLbp9yq2zxOSrY7KJJZrw25Fi97IzBqY7iqssbM61Ek5b8f3MG/sG1N2sN5KA==",
|
"contentHash": "LE/oChpRvkSi3U25u0KnJcI44JeDZ1QJCyN4qFDx2uusEypdqR24w7lKYw21eYe5esuCBuc862wRmpF63Yy1KQ==",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"System.Diagnostics.Debug": "4.3.0",
|
"System.Diagnostics.Debug": "4.3.0",
|
||||||
"System.Globalization": "4.3.0",
|
"System.Globalization": "4.3.0",
|
||||||
|
|||||||
Reference in new issue
Block a user