mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
stubbed out dsound, dinput, and ddraw, some apps get a little farther before crashing now (FCEU).
svn path=/trunk/; revision=8018
This commit is contained in:
parent
57a8fb919e
commit
8c6973cde5
9 changed files with 292 additions and 0 deletions
28
reactos/lib/ddraw/Makefile
Normal file
28
reactos/lib/ddraw/Makefile
Normal file
|
@ -0,0 +1,28 @@
|
|||
PATH_TO_TOP = ../..
|
||||
|
||||
TARGET_TYPE = dynlink
|
||||
|
||||
TARGET_NORC = yes
|
||||
|
||||
TARGET_NAME = ddraw
|
||||
|
||||
# -fno-builtin
|
||||
TARGET_CFLAGS = -D__USE_W32API
|
||||
|
||||
# require os code to explicitly request A/W version of structs/functions
|
||||
TARGET_CFLAGS += -D_DISABLE_TIDENTS -Wall -Werror
|
||||
|
||||
TARGET_SDKLIBS = ntdll.a gdi32.a
|
||||
|
||||
TARGET_OBJECTS = \
|
||||
ddraw.o
|
||||
|
||||
DEP_OBJECTS = $(TARGET_OBJECTS)
|
||||
|
||||
include $(PATH_TO_TOP)/rules.mak
|
||||
|
||||
include $(TOOLS_PATH)/helper.mk
|
||||
|
||||
include $(TOOLS_PATH)/depend.mk
|
||||
|
||||
# EOF
|
94
reactos/lib/ddraw/ddraw.c
Normal file
94
reactos/lib/ddraw/ddraw.c
Normal file
|
@ -0,0 +1,94 @@
|
|||
/* $Id: ddraw.c,v 1.1 2004/02/03 23:09:48 rcampbell Exp $
|
||||
*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS kernel
|
||||
* FILE: lib/opengl32/opengl32.c
|
||||
* PURPOSE: OpenGL32 lib
|
||||
* PROGRAMMER: Anich Gregor (blight), Royce Mitchell III
|
||||
* UPDATE HISTORY:
|
||||
* Feb 1, 2004: Created
|
||||
*/
|
||||
|
||||
#include <windows.h>
|
||||
//#include <ddraw.h>
|
||||
|
||||
#define DD_OK 0
|
||||
|
||||
HRESULT STDCALL DirectDrawCreate(
|
||||
GUID FAR* lpGUID,
|
||||
DWORD FAR* lplpDD,
|
||||
IUnknown FAR* pUnkOuter
|
||||
)
|
||||
{
|
||||
return DD_OK;
|
||||
}
|
||||
|
||||
HRESULT STDCALL DirectDrawCreateEx(
|
||||
GUID FAR* lpGUID,
|
||||
DWORD FAR* lplpDD,
|
||||
DWORD Unknown3,
|
||||
IUnknown FAR* pUnkOuter
|
||||
)
|
||||
{
|
||||
return DD_OK;
|
||||
}
|
||||
|
||||
HRESULT WINAPI DirectDrawEnumerateA(
|
||||
DWORD *lpCallback,
|
||||
LPVOID lpContext
|
||||
)
|
||||
{
|
||||
return DD_OK;
|
||||
}
|
||||
|
||||
|
||||
HRESULT WINAPI DirectDrawEnumerateW(
|
||||
DWORD *lpCallback,
|
||||
LPVOID lpContext
|
||||
)
|
||||
{
|
||||
return DD_OK;
|
||||
}
|
||||
|
||||
HRESULT WINAPI DirectDrawEnumerateExA(
|
||||
DWORD lpCallback,
|
||||
LPVOID lpContext,
|
||||
DWORD dwFlags
|
||||
)
|
||||
{
|
||||
return DD_OK;
|
||||
}
|
||||
|
||||
HRESULT WINAPI DirectDrawEnumerateExW(
|
||||
DWORD lpCallback,
|
||||
LPVOID lpContext,
|
||||
DWORD dwFlags
|
||||
)
|
||||
{
|
||||
return DD_OK;
|
||||
}
|
||||
|
||||
HRESULT WINAPI DirectDrawCreateClipper(
|
||||
DWORD dwFlags,
|
||||
DWORD FAR* lplpDDClipper,
|
||||
IUnknown FAR* pUnkOuter
|
||||
)
|
||||
{
|
||||
return DD_OK;
|
||||
}
|
||||
|
||||
BOOL WINAPI DllMain(HINSTANCE hInstance,DWORD fwdReason, LPVOID lpvReserved)
|
||||
{
|
||||
switch(fwdReason)
|
||||
{
|
||||
case DLL_PROCESS_ATTACH:
|
||||
break;
|
||||
case DLL_THREAD_ATTACH:
|
||||
break;
|
||||
case DLL_PROCESS_DETACH:
|
||||
break;
|
||||
case DLL_THREAD_DETACH:
|
||||
break;
|
||||
}
|
||||
return(TRUE);
|
||||
}
|
22
reactos/lib/ddraw/ddraw.edf
Normal file
22
reactos/lib/ddraw/ddraw.edf
Normal file
|
@ -0,0 +1,22 @@
|
|||
EXPORTS
|
||||
;AcquireDDThreadLock
|
||||
;CompleteCreateSysmemSurface
|
||||
;D3DParseUnknownCommand
|
||||
;DDGetAttachedSurfaceLcl
|
||||
;DDInternalLock
|
||||
;DDInternalUnlock
|
||||
;DSoundHelp
|
||||
DirectDrawCreate=DirectDrawCreate@12
|
||||
DirectDrawCreateClipper=DirectDrawCreateClipper@12
|
||||
DirectDrawCreateEx=DirectDrawCreateEx@16
|
||||
DirectDrawEnumerateA=DirectDrawEnumerateA@8
|
||||
DirectDrawEnumerateExA=DirectDrawEnumerateExA@12
|
||||
DirectDrawEnumerateExW=DirectDrawEnumerateExW@12
|
||||
DirectDrawEnumerateW=DirectDrawEnumerateW@8
|
||||
;DllCanUnloadNow
|
||||
;DllGetClassObject
|
||||
;GetDDSurfaceLocal
|
||||
;GetOLEThunkData
|
||||
;GetSurfaceFromDC
|
||||
;RegisterSpecialCase
|
||||
;ReleaseDDThreadLock
|
28
reactos/lib/dinput/Makefile
Normal file
28
reactos/lib/dinput/Makefile
Normal file
|
@ -0,0 +1,28 @@
|
|||
PATH_TO_TOP = ../..
|
||||
|
||||
TARGET_TYPE = dynlink
|
||||
|
||||
TARGET_NORC = yes
|
||||
|
||||
TARGET_NAME = dinput
|
||||
|
||||
# -fno-builtin
|
||||
TARGET_CFLAGS = -D__USE_W32API
|
||||
|
||||
# require os code to explicitly request A/W version of structs/functions
|
||||
TARGET_CFLAGS += -D_DISABLE_TIDENTS -Wall -Werror
|
||||
|
||||
TARGET_SDKLIBS = ntdll.a gdi32.a
|
||||
|
||||
TARGET_OBJECTS = \
|
||||
dinput.o
|
||||
|
||||
DEP_OBJECTS = $(TARGET_OBJECTS)
|
||||
|
||||
include $(PATH_TO_TOP)/rules.mak
|
||||
|
||||
include $(TOOLS_PATH)/helper.mk
|
||||
|
||||
include $(TOOLS_PATH)/depend.mk
|
||||
|
||||
# EOF
|
43
reactos/lib/dinput/dinput.c
Normal file
43
reactos/lib/dinput/dinput.c
Normal file
|
@ -0,0 +1,43 @@
|
|||
/* $Id: dinput.c,v 1.1 2004/02/03 23:09:48 rcampbell Exp $
|
||||
*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS kernel
|
||||
* FILE: lib/opengl32/opengl32.c
|
||||
* PURPOSE: OpenGL32 lib
|
||||
* PROGRAMMER: Anich Gregor (blight), Royce Mitchell III
|
||||
* UPDATE HISTORY:
|
||||
* Feb 1, 2004: Created
|
||||
*/
|
||||
|
||||
#include <windows.h>
|
||||
//#include <ddraw.h>
|
||||
|
||||
#define DD_OK 0
|
||||
|
||||
HRESULT STDCALL DirectInputCreateEx(
|
||||
HINSTANCE hinst, DWORD dwVersion, REFIID riid, LPVOID *ppDI,
|
||||
LPUNKNOWN punkOuter )
|
||||
{
|
||||
return DD_OK;
|
||||
}
|
||||
|
||||
HRESULT STDCALL DirectInputCreateA(HINSTANCE hinstance, DWORD version, DWORD **p, void* punk)
|
||||
{
|
||||
return DD_OK;
|
||||
}
|
||||
|
||||
BOOL WINAPI DllMain(HINSTANCE hInstance,DWORD fwdReason, LPVOID lpvReserved)
|
||||
{
|
||||
switch(fwdReason)
|
||||
{
|
||||
case DLL_PROCESS_ATTACH:
|
||||
break;
|
||||
case DLL_THREAD_ATTACH:
|
||||
break;
|
||||
case DLL_PROCESS_DETACH:
|
||||
break;
|
||||
case DLL_THREAD_DETACH:
|
||||
break;
|
||||
}
|
||||
return(TRUE);
|
||||
}
|
7
reactos/lib/dinput/dinput.edf
Normal file
7
reactos/lib/dinput/dinput.edf
Normal file
|
@ -0,0 +1,7 @@
|
|||
EXPORTS
|
||||
DirectInputCreateA=DirectInputCreateA@16 @1
|
||||
DirectInputCreateEx=DirectInputCreateEx@20 @2
|
||||
;DllCanUnloadNow=DllCanUnloadNow@0=DINPUT_DllCanUnloadNow@0 @4
|
||||
;DllGetClassObject@12=DINPUT_DllGetClassObject@12 @5
|
||||
;DllRegisterServer@0=DINPUT_DllRegisterServer@0 @6
|
||||
;DllUnregisterServer@0=DINPUT_DllUnregisterServer@0 @7
|
28
reactos/lib/dsound/Makefile
Normal file
28
reactos/lib/dsound/Makefile
Normal file
|
@ -0,0 +1,28 @@
|
|||
PATH_TO_TOP = ../..
|
||||
|
||||
TARGET_TYPE = dynlink
|
||||
|
||||
TARGET_NORC = yes
|
||||
|
||||
TARGET_NAME = dsound
|
||||
|
||||
# -fno-builtin
|
||||
TARGET_CFLAGS = -D__USE_W32API
|
||||
|
||||
# require os code to explicitly request A/W version of structs/functions
|
||||
TARGET_CFLAGS += -D_DISABLE_TIDENTS -Wall -Werror
|
||||
|
||||
TARGET_SDKLIBS = ntdll.a gdi32.a
|
||||
|
||||
TARGET_OBJECTS = \
|
||||
dsound.o
|
||||
|
||||
DEP_OBJECTS = $(TARGET_OBJECTS)
|
||||
|
||||
include $(PATH_TO_TOP)/rules.mak
|
||||
|
||||
include $(TOOLS_PATH)/helper.mk
|
||||
|
||||
include $(TOOLS_PATH)/depend.mk
|
||||
|
||||
# EOF
|
40
reactos/lib/dsound/dsound.c
Normal file
40
reactos/lib/dsound/dsound.c
Normal file
|
@ -0,0 +1,40 @@
|
|||
/* $Id: dsound.c,v 1.1 2004/02/03 23:09:48 rcampbell Exp $
|
||||
*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS kernel
|
||||
* FILE: lib/opengl32/opengl32.c
|
||||
* PURPOSE: OpenGL32 lib
|
||||
* PROGRAMMER: Anich Gregor (blight), Royce Mitchell III
|
||||
* UPDATE HISTORY:
|
||||
* Feb 1, 2004: Created
|
||||
*/
|
||||
|
||||
#include <windows.h>
|
||||
//#include <ddraw.h>
|
||||
|
||||
#define DD_OK 0
|
||||
|
||||
HRESULT WINAPI DirectSoundCreate(
|
||||
LPGUID lpGuid,
|
||||
DWORD* ppDS,
|
||||
LPUNKNOWN pUnkOuter
|
||||
)
|
||||
{
|
||||
return DD_OK;
|
||||
}
|
||||
|
||||
BOOL WINAPI DllMain(HINSTANCE hInstance,DWORD fwdReason, LPVOID lpvReserved)
|
||||
{
|
||||
switch(fwdReason)
|
||||
{
|
||||
case DLL_PROCESS_ATTACH:
|
||||
break;
|
||||
case DLL_THREAD_ATTACH:
|
||||
break;
|
||||
case DLL_PROCESS_DETACH:
|
||||
break;
|
||||
case DLL_THREAD_DETACH:
|
||||
break;
|
||||
}
|
||||
return(TRUE);
|
||||
}
|
2
reactos/lib/dsound/dsound.edf
Normal file
2
reactos/lib/dsound/dsound.edf
Normal file
|
@ -0,0 +1,2 @@
|
|||
EXPORTS
|
||||
DirectSoundCreate=DirectSoundCreate@12 @1
|
Loading…
Reference in a new issue