elishacloud / dxwrapper

Fixes compatibility issues with older games running on Windows 10/11 by wrapping DirectX dlls. Also allows loading custom libraries with the file extension .asi into game processes.
zlib License
1.27k stars 90 forks source link

Biohazard 2 m_IDirect3DDeviceX::EnumTextureFormats Not Implemented #79

Open fryderykhuang opened 4 years ago

fryderykhuang commented 4 years ago
10636 21:47:59.357 Starting DxWrapper v1.0.6334.21
10636 21:47:59.357 To Be Filled By O.E.M. To Be Filled By O.E.M. To Be Filled By O.E.M. (Desktop)
10636 21:47:59.357 ASRock X570 Taichi                        (Desktop)
10636 21:47:59.358 NVIDIA GeForce RTX 2080
10636 21:47:59.358 Windows 10 64-bit (10.0.18362) 
10636 21:47:59.358 "CLAIRE.EXE" (PID:15980)
10636 21:47:59.363 Disabling High DPI Scaling...
10636 21:47:59.363 Loaded library: user32.dll
10636 21:47:59.363 Loaded library: shcore.dll
10636 21:47:59.363 Loading 'ddraw.dll'...
10636 21:47:59.363 Hooking ddraw.dll APIs...
10636 21:47:59.363 Enabling ddraw wrapper
10636 21:47:59.363 Enabling d3d9 wrapper
10636 21:47:59.363 Loading 'd3d9.dll'...
10636 21:47:59.364 DxWrapper loaded!
10636 21:47:59.397 dd_DirectDrawCreate
10636 21:47:59.397 dd_DirectDrawCreateEx
10636 21:47:59.397 Redirecting 'DirectDrawCreate' IID_IDirectDraw to --> 'Direct3DCreate9'
10636 21:47:59.397 Creating device m_IDirectDrawX::m_IDirectDrawX(0109B910) converting device from v1 to v9
10636 21:47:59.397 Redirecting 'Direct3DCreate9' ...
10636 21:47:59.417 Creating device m_IDirect3D9Ex::m_IDirect3D9Ex(010990C0)
10636 21:47:59.492 Creating device m_IDirect3DDevice9Ex::InitDirect3DDevice(01101FF8)
10636 21:47:59.495 Creating device m_IDirect3DX::m_IDirect3DX(12F41CB8) converting device from v2 to v9
10636 21:47:59.629 m_IDirect3DDevice9Ex::~m_IDirect3DDevice9Ex(01101FF8) deleting device!
10636 21:48:00.725 Creating device m_IDirect3DDevice9Ex::InitDirect3DDevice(01100858)
10636 21:48:00.725 Creating device m_IDirectDrawSurfaceX::m_IDirectDrawSurfaceX(0A66EE40) converting device from v2 to v9
10636 21:48:00.725 Creating device m_IDirectDrawSurfaceX::m_IDirectDrawSurfaceX(0AA424F0) converting device from v2 to v9
10636 21:48:00.725 Creating device m_IDirect3DTexture9::m_IDirect3DTexture9(12EB6228)
10636 21:48:00.726 Creating device m_IDirect3DTexture9::m_IDirect3DTexture9(01092BB8)
10636 21:48:00.726 Creating device m_IDirect3DVertexBuffer9::m_IDirect3DVertexBuffer9(01092D68)
10636 21:48:00.729 Creating device m_IDirect3DTexture9::m_IDirect3DTexture9(01092AC8)
10636 21:48:00.730 Creating device m_IDirectDrawSurfaceX::m_IDirectDrawSurfaceX(0AA7D3C8) converting device from v1 to v9
10636 21:48:00.730 Creating device m_IDirect3DDeviceX::m_IDirect3DDeviceX(12FDF1B0) converting device from v2 to v9
10636 21:48:00.730 m_IDirect3DDeviceX::EnumTextureFormats Not Implemented
10636 21:48:00.730 m_IDirect3DDeviceX::~m_IDirect3DDeviceX(12FDF1B0) deleting device!
10636 21:48:00.999 m_IDirectDrawSurfaceX::~m_IDirectDrawSurfaceX(0A66EE40) deleting device!
10636 21:48:00.999 m_IDirectDrawSurfaceX::~m_IDirectDrawSurfaceX(0AA424F0) deleting device!
10636 21:48:00.999 m_IDirect3DX::~m_IDirect3DX(12F41CB8) deleting device!
10636 21:48:04.850 Quiting DxWrapper
10636 21:48:04.850 Unloading libraries...
10636 21:48:04.850 Reseting screen resolution
10636 21:48:04.889 Reseting font smoothing
10636 21:48:04.894 DxWrapper terminated!
elishacloud commented 4 years ago

Yes, this game uses the 3D API's in ddraw. So far I have not started implementing them yet. But I hope to start implementing those before the end of the year.

elishacloud commented 5 months ago

I don't have Biohazard 2 to test with, but you can try with the latest build. I implemented that function in the latest build.

Here is the latest build: dxwrapper.zip