[PATCH 2/2] d3dim700: add stub dll

Austin English austinenglish at gmail.com
Sun Oct 25 01:22:14 CDT 2020


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

diff --git a/configure.ac b/configure.ac
index 331ae064bdc..2f81fd22610 100644
--- a/configure.ac
+++ b/configure.ac
@@ -3156,6 +3156,7 @@ WINE_CONFIG_MAKEFILE(dlls/d3dcompiler_46)
 WINE_CONFIG_MAKEFILE(dlls/d3dcompiler_47)
 WINE_CONFIG_MAKEFILE(dlls/d3dcompiler_47/tests)
 WINE_CONFIG_MAKEFILE(dlls/d3dim)
+WINE_CONFIG_MAKEFILE(dlls/d3dim700)
 WINE_CONFIG_MAKEFILE(dlls/d3drm)
 WINE_CONFIG_MAKEFILE(dlls/d3drm/tests)
 WINE_CONFIG_MAKEFILE(dlls/d3dx10_33)
diff --git a/dlls/d3dim700/Makefile.in b/dlls/d3dim700/Makefile.in
new file mode 100644
index 00000000000..12a28ae475a
--- /dev/null
+++ b/dlls/d3dim700/Makefile.in
@@ -0,0 +1,8 @@
+MODULE    = d3dim700.dll
+
+EXTRADLLFLAGS = -mno-cygwin
+
+C_SRCS = \
+	d3dim700_main.c
+
+RC_SRCS = version.rc
diff --git a/dlls/d3dim700/d3dim700.spec b/dlls/d3dim700/d3dim700.spec
new file mode 100644
index 00000000000..931b3dd9f68
--- /dev/null
+++ b/dlls/d3dim700/d3dim700.spec
@@ -0,0 +1,18 @@
+@ stub D3DFree
+@ stub D3DMalloc
+@ stub D3DRealloc
+@ stub Direct3DCreateDevice
+@ stub CreateTexture
+@ stub D3DBreakVBLock
+@ stub D3DTextureUpdate
+@ stub DestroyTexture
+@ stub Direct3DCreate
+@ stub Direct3D_HALCleanUp
+@ stub FlushD3DDevices
+@ stub GetLOD
+@ stub GetPriority
+@ stub PaletteAssociateNotify
+@ stub PaletteUpdateNotify
+@ stub SetLOD
+@ stub SetPriority
+@ stub SurfaceFlipNotify
\ No newline at end of file
diff --git a/dlls/d3dim700/d3dim700_main.c b/dlls/d3dim700/d3dim700_main.c
new file mode 100644
index 00000000000..18a211ccc74
--- /dev/null
+++ b/dlls/d3dim700/d3dim700_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(d3dim700);
+
+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/d3dim700/version.rc b/dlls/d3dim700/version.rc
new file mode 100644
index 00000000000..cff97677690
--- /dev/null
+++ b/dlls/d3dim700/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 d3dim700"
+#define WINE_FILENAME_STR "d3dim700.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