[PATCH 1/2] d3d8thk: add stub dll

Austin English austinenglish at gmail.com
Sat Oct 24 03:38:32 CDT 2020


Signed-off-by: Austin English <austinenglish at gmail.com>
---
 configure.ac                |  1 +
 dlls/d3d8thk/Makefile.in    |  8 ++++++
 dlls/d3d8thk/d3d8thk.spec   | 56 +++++++++++++++++++++++++++++++++++++
 dlls/d3d8thk/d3d8thk_main.c | 42 ++++++++++++++++++++++++++++
 dlls/d3d8thk/version.rc     | 26 +++++++++++++++++
 5 files changed, 133 insertions(+)
 create mode 100644 dlls/d3d8thk/Makefile.in
 create mode 100644 dlls/d3d8thk/d3d8thk.spec
 create mode 100644 dlls/d3d8thk/d3d8thk_main.c
 create mode 100644 dlls/d3d8thk/version.rc

diff --git a/configure.ac b/configure.ac
index 372785ee0fd..331ae064bdc 100644
--- a/configure.ac
+++ b/configure.ac
@@ -3137,6 +3137,7 @@ WINE_CONFIG_MAKEFILE(dlls/d3d12)
 WINE_CONFIG_MAKEFILE(dlls/d3d12/tests)
 WINE_CONFIG_MAKEFILE(dlls/d3d8)
 WINE_CONFIG_MAKEFILE(dlls/d3d8/tests)
+WINE_CONFIG_MAKEFILE(dlls/d3d8thk)
 WINE_CONFIG_MAKEFILE(dlls/d3d9)
 WINE_CONFIG_MAKEFILE(dlls/d3d9/tests)
 WINE_CONFIG_MAKEFILE(dlls/d3dcompiler_33)
diff --git a/dlls/d3d8thk/Makefile.in b/dlls/d3d8thk/Makefile.in
new file mode 100644
index 00000000000..b84c8d171f1
--- /dev/null
+++ b/dlls/d3d8thk/Makefile.in
@@ -0,0 +1,8 @@
+MODULE    = d3d8thk.dll
+
+EXTRADLLFLAGS = -mno-cygwin
+
+C_SRCS = \
+	d3d8thk_main.c
+
+RC_SRCS = version.rc
diff --git a/dlls/d3d8thk/d3d8thk.spec b/dlls/d3d8thk/d3d8thk.spec
new file mode 100644
index 00000000000..98e5d6c64a1
--- /dev/null
+++ b/dlls/d3d8thk/d3d8thk.spec
@@ -0,0 +1,56 @@
+@ stub OsThunkD3dContextCreate
+@ stub OsThunkD3dContextDestroy
+@ stub OsThunkD3dContextDestroyAll
+@ stub OsThunkD3dDrawPrimitives2
+@ stub OsThunkD3dValidateTextureStageState
+@ stub OsThunkDdAddAttachedSurface
+@ stub OsThunkDdAlphaBlt
+@ stub OsThunkDdAttachSurface
+@ stub OsThunkDdBeginMoCompFrame
+@ stub OsThunkDdBlt
+@ stub OsThunkDdCanCreateD3DBuffer
+@ stub OsThunkDdCanCreateSurface
+@ stub OsThunkDdColorControl
+@ stub OsThunkDdCreateD3DBuffer
+@ stub OsThunkDdCreateDirectDrawObject
+@ stub OsThunkDdCreateMoComp
+@ stub OsThunkDdCreateSurface
+@ stub OsThunkDdCreateSurfaceEx
+@ stub OsThunkDdCreateSurfaceObject
+@ stub OsThunkDdDeleteDirectDrawObject
+@ stub OsThunkDdDeleteSurfaceObject
+@ stub OsThunkDdDestroyD3DBuffer
+@ stub OsThunkDdDestroyMoComp
+@ stub OsThunkDdDestroySurface
+@ stub OsThunkDdEndMoCompFrame
+@ stub OsThunkDdFlip
+@ stub OsThunkDdFlipToGDISurface
+@ stub OsThunkDdGetAvailDriverMemory
+@ stub OsThunkDdGetBltStatus
+@ stub OsThunkDdGetDC
+@ stub OsThunkDdGetDriverInfo
+@ stub OsThunkDdGetDriverState
+@ stub OsThunkDdGetDxHandle
+@ stub OsThunkDdGetFlipStatus
+@ stub OsThunkDdGetInternalMoCompInfo
+@ stub OsThunkDdGetMoCompBuffInfo
+@ stub OsThunkDdGetMoCompFormats
+@ stub OsThunkDdGetMoCompGuids
+@ stub OsThunkDdGetScanLine
+@ stub OsThunkDdLock
+@ stub OsThunkDdLockD3D
+@ stub OsThunkDdQueryDirectDrawObject
+@ stub OsThunkDdQueryMoCompStatus
+@ stub OsThunkDdReenableDirectDrawObject
+@ stub OsThunkDdReleaseDC
+@ stub OsThunkDdRenderMoComp
+@ stub OsThunkDdResetVisrgn
+@ stub OsThunkDdSetColorKey
+@ stub OsThunkDdSetExclusiveMode
+@ stub OsThunkDdSetGammaRamp
+@ stub OsThunkDdSetOverlayPosition
+@ stub OsThunkDdUnattachSurface
+@ stub OsThunkDdUnlock
+@ stub OsThunkDdUnlockD3D
+@ stub OsThunkDdUpdateOverlay
+@ stub OsThunkDdWaitForVerticalBlank
\ No newline at end of file
diff --git a/dlls/d3d8thk/d3d8thk_main.c b/dlls/d3d8thk/d3d8thk_main.c
new file mode 100644
index 00000000000..1d89cb48720
--- /dev/null
+++ b/dlls/d3d8thk/d3d8thk_main.c
@@ -0,0 +1,42 @@
+/*
+ *
+ * Copyright 2020 Austin English
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
+ */
+
+#include <stdarg.h>
+
+#include "windef.h"
+#include "winbase.h"
+#include "wine/debug.h"
+
+WINE_DEFAULT_DEBUG_CHANNEL(d3d8thk);
+
+BOOL WINAPI DllMain(HINSTANCE instance, DWORD reason, void *reserved)
+{
+    TRACE("(%p, %u, %p)\n", instance, reason, reserved);
+
+    switch (reason)
+    {
+        case DLL_WINE_PREATTACH:
+            return FALSE;    /* prefer native version */
+        case DLL_PROCESS_ATTACH:
+            DisableThreadLibraryCalls(instance);
+            break;
+    }
+
+    return TRUE;
+}
diff --git a/dlls/d3d8thk/version.rc b/dlls/d3d8thk/version.rc
new file mode 100644
index 00000000000..444630a7745
--- /dev/null
+++ b/dlls/d3d8thk/version.rc
@@ -0,0 +1,26 @@
+/*
+ * Copyright 2020 Austin English
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
+ */
+
+#define WINE_FILEDESCRIPTION_STR "Wine d3d8thk"
+#define WINE_FILENAME_STR "d3d8thk.dll"
+#define WINE_FILEVERSION 5,3,2600,5512
+#define WINE_FILEVERSION_STR "5.3.2600.5512"
+#define WINE_PRODUCTVERSION 5,3,2600,5512
+#define WINE_PRODUCTVERSION_STR "5.3.2600.5512"
+
+#include "wine/wine_common_ver.rc"
-- 
2.28.0




More information about the wine-devel mailing list