From b4456d0fa929aec25e275e1b5e1ca8a79742133d Mon Sep 17 00:00:00 2001 From: Fabian Maurer Date: Sun, 24 Sep 2017 16:35:01 +0200 Subject: [PATCH] dx8vb: Add stub dll. Signed-off-by: Fabian Maurer Signed-off-by: Alexandre Julliard --- configure | 2 + configure.ac | 1 + dlls/dx8vb/Makefile.in | 4 ++ dlls/dx8vb/dx8vb.spec | 139 +++++++++++++++++++++++++++++++++++++++++ dlls/dx8vb/main.c | 45 +++++++++++++ 5 files changed, 191 insertions(+) create mode 100644 dlls/dx8vb/Makefile.in create mode 100644 dlls/dx8vb/dx8vb.spec create mode 100644 dlls/dx8vb/main.c diff --git a/configure b/configure index fc981b6c3e7..425f15ddebd 100755 --- a/configure +++ b/configure @@ -1199,6 +1199,7 @@ enable_dssenh enable_dswave enable_dwmapi enable_dwrite +enable_dx8vb enable_dxdiagn enable_dxgi enable_dxva2 @@ -18329,6 +18330,7 @@ wine_fn_config_test dlls/dswave/tests dswave_test wine_fn_config_dll dwmapi enable_dwmapi implib wine_fn_config_dll dwrite enable_dwrite implib wine_fn_config_test dlls/dwrite/tests dwrite_test +wine_fn_config_dll dx8vb enable_dx8vb wine_fn_config_dll dxdiagn enable_dxdiagn clean wine_fn_config_test dlls/dxdiagn/tests dxdiagn_test wine_fn_config_lib dxerr8 diff --git a/configure.ac b/configure.ac index faa7791ecb5..518e9d3ed88 100644 --- a/configure.ac +++ b/configure.ac @@ -3112,6 +3112,7 @@ WINE_CONFIG_TEST(dlls/dswave/tests) WINE_CONFIG_DLL(dwmapi,,[implib]) WINE_CONFIG_DLL(dwrite,,[implib]) WINE_CONFIG_TEST(dlls/dwrite/tests) +WINE_CONFIG_DLL(dx8vb) WINE_CONFIG_DLL(dxdiagn,,[clean]) WINE_CONFIG_TEST(dlls/dxdiagn/tests) WINE_CONFIG_LIB(dxerr8) diff --git a/dlls/dx8vb/Makefile.in b/dlls/dx8vb/Makefile.in new file mode 100644 index 00000000000..ce3237c9a57 --- /dev/null +++ b/dlls/dx8vb/Makefile.in @@ -0,0 +1,4 @@ +MODULE = dx8vb.dll + +C_SRCS = \ + main.c diff --git a/dlls/dx8vb/dx8vb.spec b/dlls/dx8vb/dx8vb.spec new file mode 100644 index 00000000000..973d4b3f20b --- /dev/null +++ b/dlls/dx8vb/dx8vb.spec @@ -0,0 +1,139 @@ +@ stub VB_D3DXVec2Dot +@ stub VB_D3DXVec2CCW +@ stub VB_D3DXVec2Add +@ stub VB_D3DXVec2Subtract +@ stub VB_D3DXVec2Minimize +@ stub VB_D3DXVec2Maximize +@ stub VB_D3DXVec2Scale +@ stub VB_D3DXVec2Lerp +@ stub VB_D3DXVec2Normalize +@ stub VB_D3DXVec2Hermite +@ stub VB_D3DXVec2BaryCentric +@ stub VB_D3DXVec2Transform +@ stub VB_D3DXVec2TransformCoord +@ stub VB_D3DXVec2TransformNormal +@ stub VB_D3DXVec3Length +@ stub VB_D3DXVec3LengthSq +@ stub VB_D3DXVec3Dot +@ stub VB_D3DXVec3Cross +@ stub VB_D3DXVec3Add +@ stub VB_D3DXVec3Subtract +@ stub VB_D3DXVec3Minimize +@ stub VB_D3DXVec3Maximize +@ stub VB_D3DXVec3Scale +@ stub VB_D3DXVec3Lerp +@ stub VB_D3DXVec3Normalize +@ stub VB_D3DXVec3Hermite +@ stub VB_D3DXVec3BaryCentric +@ stub VB_D3DXVec3Transform +@ stub VB_D3DXVec3TransformCoord +@ stub VB_D3DXVec3TransformNormal +@ stub VB_D3DXVec4Length +@ stub VB_D3DXVec4LengthSq +@ stub VB_D3DXVec4Dot +@ stub VB_D3DXVec4Add +@ stub VB_D3DXVec4Subtract +@ stub VB_D3DXVec4Minimize +@ stub VB_D3DXVec4Maximize +@ stub VB_D3DXVec4Scale +@ stub VB_D3DXVec4Lerp +@ stub VB_D3DXVec4Cross +@ stub VB_D3DXVec4Normalize +@ stub VB_D3DXVec4Hermite +@ stub VB_D3DXVec4BaryCentric +@ stub VB_D3DXVec4Transform +@ stub VB_D3DXMatrixIdentity +@ stub VB_D3DXMatrixIsIdentity +@ stub VB_D3DXMatrixfDeterminant +@ stub VB_D3DXMatrixMultiply +@ stub VB_D3DXMatrixTranspose +@ stub VB_D3DXMatrixInverse +@ stub VB_D3DXMatrixScaling +@ stub VB_D3DXMatrixTranslation +@ stub VB_D3DXMatrixRotationX +@ stub VB_D3DXMatrixRotationY +@ stub VB_D3DXMatrixRotationZ +@ stub VB_D3DXMatrixRotationAxis +@ stub VB_D3DXMatrixRotationQuaternion +@ stub VB_D3DXMatrixRotationYawPitchRoll +@ stub VB_D3DXMatrixTransformation +@ stub VB_D3DXMatrixAffineTransformation +@ stub VB_D3DXMatrixLookAtRH +@ stub VB_D3DXMatrixLookAtLH +@ stub VB_D3DXMatrixPerspectiveRH +@ stub VB_D3DXMatrixPerspectiveLH +@ stub VB_D3DXMatrixPerspectiveFovRH +@ stub VB_D3DXMatrixPerspectiveFovLH +@ stub VB_D3DXMatrixPerspectiveOffCenterRH +@ stub VB_D3DXMatrixPerspectiveOffCenterLH +@ stub VB_D3DXMatrixOrthoRH +@ stub VB_D3DXMatrixOrthoLH +@ stub VB_D3DXMatrixOrthoOffCenterRH +@ stub VB_D3DXMatrixOrthoOffCenterLH +@ stub VB_D3DXMatrixShadow +@ stub VB_D3DXMatrixReflect +@ stub VB_D3DXQuaternionLength +@ stub VB_D3DXQuaternionLengthSq +@ stub VB_D3DXQuaternionIdentity +@ stub VB_D3DXQuaternionIsIdentity +@ stub VB_D3DXQuaternionConjugate +@ stub VB_D3DXQuaternionToAxisAngle +@ stub VB_D3DXQuaternionRotationMatrix +@ stub VB_D3DXQuaternionRotationAxis +@ stub VB_D3DXQuaternionRotationYawPitchRoll +@ stub VB_D3DXQuaternionMultiply +@ stub VB_D3DXQuaternionNormalize +@ stub VB_D3DXQuaternionInverse +@ stub VB_D3DXQuaternionLn +@ stub VB_D3DXQuaternionExp +@ stub VB_D3DXQuaternionSlerp +@ stub VB_D3DXQuaternionSquad +@ stub VB_D3DXQuaternionBaryCentric +@ stub VB_D3DXPlaneDot +@ stub VB_D3DXPlaneDotCoord +@ stub VB_D3DXPlaneDotNormal +@ stub VB_D3DXPlaneNormalize +@ stub VB_D3DXPlaneIntersectLine +@ stub VB_D3DXPlaneFromPointNormal +@ stub VB_D3DXPlaneFromPoints +@ stub VB_D3DXPlaneTransform +@ stub VB_D3DXColorNegative +@ stub VB_D3DXColorAdd +@ stub VB_D3DXColorSubtract +@ stub VB_D3DXColorScale +@ stub VB_D3DXColorModulate +@ stub VB_D3DXColorLerp +@ stub VB_D3DXColorAdjustSaturation +@ stub VB_D3DXColorAdjustContrast +@ stub VB_D3DXVec2Length +@ stub VB_D3DXVec2LengthSq +@ stub D3DVertexBuffer8SetData +@ stub D3DVertexBuffer8GetData +@ stub D3DIndexBuffer8SetData +@ stub D3DIndexBuffer8GetData +@ stub DXLockArray8 +@ stub DXUnlockArray8 +@ stub VB_NewBuffer +@ stub VB_AddDataToBuffer +@ stub VB_AddStringToBuffer +@ stub VB_GetDataFromBuffer +@ stub VB_GetStringFromBuffer +@ stub VB_D3DXVec2CatmullRom +@ stub VB_D3DXVec3CatmullRom +@ stub VB_D3DXVec4CatmullRom +@ stub VB_D3DXVec3Project +@ stub VB_D3DXVec3Unproject +@ stub VB_D3DColorRGBA +@ stub VB_D3DColorARGB +@ stub VB_D3DColorXRGB +@ stub VB_D3DColorMake +@ stub VB_D3DXQuaternionDot +@ stub D3DXMeshVertexBuffer8SetData +@ stub D3DXMeshVertexBuffer8GetData +@ stub D3DXMeshIndexBuffer8SetData +@ stub D3DXMeshIndexBuffer8GetData +@ stub DXCopyMemory +@ stub DllCanUnloadNow +@ stub DllGetClassObject +@ stub DllRegisterServer +@ stub DllUnregisterServer diff --git a/dlls/dx8vb/main.c b/dlls/dx8vb/main.c new file mode 100644 index 00000000000..0b60e345ca5 --- /dev/null +++ b/dlls/dx8vb/main.c @@ -0,0 +1,45 @@ +/* + * Copyright 2017 Fabian Maurer + * + * 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 +#include + +#include "windef.h" +#include "winbase.h" +#include "winuser.h" +#include "winreg.h" + +#include "wine/debug.h" + +WINE_DEFAULT_DEBUG_CHANNEL(dx8vb); + +BOOL WINAPI DllMain(HINSTANCE instance, DWORD reason, LPVOID reserved) +{ + TRACE("(0x%p, %d, %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; +}