From 40c60946885fe3472294ebce8a05545e952079f0 Mon Sep 17 00:00:00 2001 From: sappho Date: Tue, 24 Oct 2023 02:17:53 -0400 Subject: [PATCH] Add SteamWorks_SetHTTPRequestRawPostBodyFromFile --- include/steamworks.inc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/steamworks.inc b/include/steamworks.inc index d256104..05d5833 100644 --- a/include/steamworks.inc +++ b/include/steamworks.inc @@ -281,6 +281,7 @@ native bool SteamWorks_GetHTTPStreamingResponseBodyData(Handle hRequest, int cOf native bool SteamWorks_GetHTTPDownloadProgressPct(Handle hRequest, float &percent); native bool SteamWorks_GetHTTPRequestWasTimedOut(Handle hRequest, bool &bWasTimedOut); native bool SteamWorks_SetHTTPRequestRawPostBody(Handle hRequest, const char[] sContentType, const char[] sBody, int bodylen); +native bool SteamWorks_SetHTTPRequestRawPostBodyFromFile(Handle hRequest, const char[] sContentType, const char[] sFileName); typeset SteamWorksHTTPBodyCallback { @@ -371,6 +372,7 @@ public void __ext_SteamWorks_SetNTVOptional() MarkNativeAsOptional("SteamWorks_GetHTTPStreamingResponseBodyData"); MarkNativeAsOptional("SteamWorks_GetHTTPDownloadProgressPct"); MarkNativeAsOptional("SteamWorks_SetHTTPRequestRawPostBody"); + MarkNativeAsOptional("SteamWorks_SetHTTPRequestRawPostBodyFromFile"); MarkNativeAsOptional("SteamWorks_GetHTTPResponseBodyCallback"); MarkNativeAsOptional("SteamWorks_WriteHTTPResponseBodyToFile");