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:
parent
aa1ba9f6ec
commit
bf3d21c835
@ -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
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user