feat: 🎉 finalize Kiseki.Patcher for v1.0.0 🎉

This commit is contained in:
rjindael 2023-09-30 23:10:19 -07:00
parent 9a16099c7f
commit e325527778
No known key found for this signature in database
GPG Key ID: D069369C906CCF31
1 changed files with 2 additions and 11 deletions

View File

@ -22,17 +22,8 @@ void __fastcall Http__httpGetPostWinInet_hook(Http* _this, void*, bool isPost, i
if (!url["path"].empty() && !url["host"].empty() && !url["query"].empty())
{
url["path"] = Helpers::toLower(url["path"]);
// TODO: This is a weird hack.
if (url["host"] == "kiseki.lol" || url["host"] == "www.kiseki.lol" || url["host"] == "kiseki.loc" || url["host"] == "www.kiseki.loc")
{
if (url["path"] == "/asset" || url["path"] == "/asset/")
{
std::string location = Helpers::getRedirectURL(url["scheme"] + "://" + url["host"] + "/asset?" + url["query"]);
_this = &_changed;
}
}
else if (url["host"] == "roblox.com" || url["host"] == "www.roblox.com")
if (url["host"] == "roblox.com" || url["host"] == "www.roblox.com")
{
if (url["path"] == "/game/tools/insertasset.ashx")
{