mirror of
https://github.com/Milxnor/Cobalt.git
synced 2026-01-13 02:22:22 +01:00
i forgot if this fixes it
This commit is contained in:
@@ -63,10 +63,18 @@ inline CURLcode CurlEasySetOptDetour(struct Curl_easy* data, CURLoption tag, ...
|
|||||||
Uri uri = Uri::Parse(url);
|
Uri uri = Uri::Parse(url);
|
||||||
|
|
||||||
if (bIsS13Epic)
|
if (bIsS13Epic)
|
||||||
|
{
|
||||||
|
if (!uri.QueryString.empty())
|
||||||
{
|
{
|
||||||
// this *should* work
|
// this *should* work
|
||||||
|
std::cout << "before query: " << uri.QueryString << '\n';
|
||||||
uri.QueryString = ReplaceString(uri.QueryString.data(), "Windows", "IOS");
|
uri.QueryString = ReplaceString(uri.QueryString.data(), "Windows", "IOS");
|
||||||
url = ReplaceString(uri.QueryString.data(), "Windows", "IOS"); // Uhh this should be fine
|
std::cout << "after query: " << uri.QueryString << '\n';
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
std::cout << "Empty query!\n";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
std::cout << "URL: " << uri.Host << uri.Path << '\n';
|
std::cout << "URL: " << uri.Host << uri.Path << '\n';
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
|
||||||
#include <Windows.h>
|
#include <Windows.h>
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include <detours.h>
|
#include <detours.h>
|
||||||
|
|||||||
Reference in New Issue
Block a user