From 8af635f047ff5b0fcf07f932ab573425ebbdce28 Mon Sep 17 00:00:00 2001 From: rjindael Date: Fri, 8 Sep 2023 18:26:32 -0700 Subject: [PATCH] feat: use sets.pizzaboxer.xyz for deprecated InsertAsset endpoint --- Kiseki.Patcher/Header/Globals.hpp | 2 +- Kiseki.Patcher/Source/Hooks/Http.cpp | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/Kiseki.Patcher/Header/Globals.hpp b/Kiseki.Patcher/Header/Globals.hpp index 63bb9dc..aad9f74 100644 --- a/Kiseki.Patcher/Header/Globals.hpp +++ b/Kiseki.Patcher/Header/Globals.hpp @@ -1,7 +1,7 @@ #pragma once #define ALLOWED_WILDCARD_DOMAINS "kiseki.loc", "kiseki.lol", "rbxcdn.com", "roblox.com" -#define ALLOWED_DOMAINS +#define ALLOWED_DOMAINS "sets.pizzaboxer.xyz" #define ALLOWED_SCHEMES "http", "https" #define ALLOWED_EMBEDDED_SCHEMES "javascript", "jscript", "res" diff --git a/Kiseki.Patcher/Source/Hooks/Http.cpp b/Kiseki.Patcher/Source/Hooks/Http.cpp index c7afea1..244882f 100644 --- a/Kiseki.Patcher/Source/Hooks/Http.cpp +++ b/Kiseki.Patcher/Source/Hooks/Http.cpp @@ -25,7 +25,11 @@ void __fastcall Http__httpGetPostWinInet_hook(Http* _this, void*, bool isPost, i if (url["host"] == "roblox.com" || url["host"] == "www.roblox.com") { - if (url["path"] == "/asset" || url["path"] == "/asset/" || url["path"] == "/asset/default.ashx") + if (url["path"] == "/game/tools/insertasset.ashx") + { + _changed.url = "https://sets.pizzaboxer.xyz/" + url["path"] + "?" + url["query"]; + } + else if (url["path"] == "/asset" || url["path"] == "/asset/" || url["path"] == "/asset/default.ashx") { _changed.url = "https://assetdelivery.roblox.com/v1/asset/?" + url["query"]; _this = &_changed;