mirror of
https://github.com/FunkyFr3sh/cnc-ddraw.git
synced 2025-03-27 23:45:21 +01:00
add dummy DirectDrawEnumerateA, seems to be needed for some games
This commit is contained in:
parent
2a53cb5b2f
commit
a7b48b2bfd
@ -2,3 +2,4 @@ LIBRARY ddraw.dll
|
|||||||
|
|
||||||
EXPORTS
|
EXPORTS
|
||||||
DirectDrawCreate @1
|
DirectDrawCreate @1
|
||||||
|
DirectDrawEnumerateA @2
|
||||||
|
9
main.c
9
main.c
@ -614,6 +614,11 @@ struct IDirectDrawImplVtbl iface =
|
|||||||
ddraw_WaitForVerticalBlank
|
ddraw_WaitForVerticalBlank
|
||||||
};
|
};
|
||||||
|
|
||||||
|
HRESULT WINAPI DirectDrawEnumerateA(LPDDENUMCALLBACK lpCallback, LPVOID lpContext)
|
||||||
|
{
|
||||||
|
return DD_OK;
|
||||||
|
}
|
||||||
|
|
||||||
int stdout_open = 0;
|
int stdout_open = 0;
|
||||||
HRESULT WINAPI DirectDrawCreate(GUID FAR* lpGUID, LPDIRECTDRAW FAR* lplpDD, IUnknown FAR* pUnkOuter)
|
HRESULT WINAPI DirectDrawCreate(GUID FAR* lpGUID, LPDIRECTDRAW FAR* lplpDD, IUnknown FAR* pUnkOuter)
|
||||||
{
|
{
|
||||||
@ -687,7 +692,7 @@ HRESULT WINAPI DirectDrawCreate(GUID FAR* lpGUID, LPDIRECTDRAW FAR* lplpDD, IUnk
|
|||||||
"; use letter- or windowboxing to make a best fit (GDI only!)\n"
|
"; use letter- or windowboxing to make a best fit (GDI only!)\n"
|
||||||
"boxing=false\n"
|
"boxing=false\n"
|
||||||
"; real rendering rate, -1 = screen rate, 0 = unlimited, n = cap\n"
|
"; real rendering rate, -1 = screen rate, 0 = unlimited, n = cap\n"
|
||||||
"max_fps=0\n"
|
"max_fps=120\n"
|
||||||
"; vertical synchronization, enable if you get tearing (OpenGL only)\n"
|
"; vertical synchronization, enable if you get tearing (OpenGL only)\n"
|
||||||
"vsync=false\n"
|
"vsync=false\n"
|
||||||
"; scaling filter, nearest = sharp, linear = smooth (OpenGL only)\n"
|
"; scaling filter, nearest = sharp, linear = smooth (OpenGL only)\n"
|
||||||
@ -704,7 +709,7 @@ HRESULT WINAPI DirectDrawCreate(GUID FAR* lpGUID, LPDIRECTDRAW FAR* lplpDD, IUnk
|
|||||||
"renderer=gdi\n"
|
"renderer=gdi\n"
|
||||||
"; force CPU0 affinity, avoids crashes with RA, *might* have a performance impact\n"
|
"; force CPU0 affinity, avoids crashes with RA, *might* have a performance impact\n"
|
||||||
"singlecpu=true\n"
|
"singlecpu=true\n"
|
||||||
"; Windows position, -1 = center to screen\n"
|
"; Window position, -1 = center to screen\n"
|
||||||
"posX=-1\n"
|
"posX=-1\n"
|
||||||
"posY=-1\n"
|
"posY=-1\n"
|
||||||
"; Screenshot Hotkey, default = CTRL + G\n"
|
"; Screenshot Hotkey, default = CTRL + G\n"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user