From 9405bfcfe45bddd10a88afb33d405d1d4cc71e25 Mon Sep 17 00:00:00 2001 From: Sarah Date: Sun, 16 Mar 2025 13:30:41 -0400 Subject: [PATCH] fix eos on like 28+ maybe? --- Starfall/request.cpp | 12 ++++-------- Starfall/request.h | 1 - 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/Starfall/request.cpp b/Starfall/request.cpp index 36f604c..f20d888 100644 --- a/Starfall/request.cpp +++ b/Starfall/request.cpp @@ -16,13 +16,6 @@ namespace Unreal { { return ((FString&(*)(FCurlHttpRequest*, FString)) VTable[0])(this, FString()); } - - __forceinline void FCurlHttpRequest::SetURL(URL& URL) - { - FString str = URL; - ((void (*)(FCurlHttpRequest*, FString)) VTable[SetURLIdx])(this, str); - free(str.String); - } } namespace Starfall { @@ -90,7 +83,10 @@ def: else { __URL_SetHost(url, Backend); } - Request->SetURL(*url); + + FString str = *url; + ((void (*)(FCurlHttpRequest*, FString)) Request->VTable[OG == EOSProcessRequestOG ? 10 : FCurlHttpRequest::SetURLIdx])(Request, str); + free(str.String); UseBackendParam ? url->Dealloc() : url->DeallocPathQuery(); } diff --git a/Starfall/request.h b/Starfall/request.h index 88c4053..1696ab7 100644 --- a/Starfall/request.h +++ b/Starfall/request.h @@ -14,7 +14,6 @@ namespace Unreal { static inline void** ProcessRequestVT = nullptr; FString GetURL(); - void SetURL(URL& URL); }; }