1
0
mirror of https://github.com/FunkyFr3sh/cnc-ddraw.git synced 2025-03-14 22:03:27 +01:00

add exports for game patching

This commit is contained in:
FunkyFr3sh 2021-11-20 03:45:05 +01:00
parent aa1ba9f6ec
commit bf3d21c835
2 changed files with 50 additions and 0 deletions

View File

@ -18,5 +18,13 @@ EXPORTS
DirectInputCreateW = fake_DirectInputCreateW
DirectInputCreateEx = fake_DirectInputCreateEx
DirectInput8Create = fake_DirectInput8Create
DDmemcpy
DDmemmove
DDmemset
DDZeroMemory
DDmemcpyStd
DDmemmoveStd
DDmemsetStd
DDZeroMemoryStd
GameHandlesClose DATA
pvBmpBits = FakePrimarySurface DATA

View File

@ -232,3 +232,45 @@ DWORD WINAPI DDInternalUnlock(DWORD a)
TRACE("NOT_IMPLEMENTED <- %s\n", __FUNCTION__);
return ret;
}
/* Exports for game patching */
void* __cdecl DDmemcpy(void* _Dst, void const* _Src, size_t _Size)
{
return memcpy(_Dst, _Src, _Size);
}
void* __cdecl DDmemmove(void* _Dst, void const* _Src, size_t _Size)
{
return memmove(_Dst, _Src, _Size);
}
void* __cdecl DDmemset(void* _Dst, int _Val, size_t _Size)
{
return memset(_Dst, _Val, _Size);
}
void __cdecl DDZeroMemory(PVOID Destination, SIZE_T Length)
{
memset(Destination, 0, Length);
}
void* __stdcall DDmemcpyStd(void* _Dst, void const* _Src, size_t _Size)
{
return memcpy(_Dst, _Src, _Size);
}
void* __stdcall DDmemmoveStd(void* _Dst, void const* _Src, size_t _Size)
{
return memmove(_Dst, _Src, _Size);
}
void* __stdcall DDmemsetStd(void* _Dst, int _Val, size_t _Size)
{
return memset(_Dst, _Val, _Size);
}
void __stdcall DDZeroMemoryStd(PVOID Destination, SIZE_T Length)
{
memset(Destination, 0, Length);
}