1
0
mirror of synced 2025-01-20 17:48:51 +01:00

Implement GetUserData

This commit is contained in:
Poliwrath 2019-03-07 20:38:18 -05:00
parent 130552e52c
commit a02884f89f

View File

@ -535,6 +535,17 @@ extern "C" {
return OPEN_SEGA_SUCCESS;
}
__declspec(dllexport) void* SEGAAPI_GetUserData(void* hHandle)
{
if (hHandle == NULL)
{
return nullptr;
}
OPEN_segaapiBuffer_t* buffer = (OPEN_segaapiBuffer_t*)hHandle;
return buffer->userData;
}
__declspec(dllexport) OPENSEGASTATUS SEGAAPI_UpdateBuffer(void* hHandle, unsigned int dwStartOffset,
unsigned int dwLength)
{