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;