1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-30 05:15:59 +02:00

Improve open error for files from network

This commit is contained in:
disarray2077 2022-01-07 10:22:26 -03:00
parent 36311cab2d
commit 2fd78b36e7
5 changed files with 81 additions and 20 deletions

View file

@ -19,6 +19,9 @@ namespace Beefy2D.utils
[CallingConvention(.Stdcall), CLink]
static extern int32 HTTP_GetResult(void* netRequest, int32 waitMS);
[CallingConvention(.Stdcall), CLink]
static extern void HTTP_GetLastError(void* netRequest, out char8* error, out int32 errorLength);
[CallingConvention(.Stdcall), CLink]
static extern void HTTP_Delete(void* netRequest);
@ -37,5 +40,11 @@ namespace Beefy2D.utils
{
return (HTTPResult)HTTP_GetResult(mNativeNetRequest, 0);
}
public void GetLastError(String outError)
{
HTTP_GetLastError(mNativeNetRequest, let error, let errorLength);
outError.Append(StringView(error, errorLength));
}
}
}