Signed-off-by: Alistair Leslie-Hughes leslie_alistair@hotmail.com
-- v2: d3drm: IDirect3DRMMeshBuilder3 Load support loading from resource
From: Alistair Leslie-Hughes leslie_alistair@hotmail.com
Signed-off-by: Alistair Leslie-Hughes leslie_alistair@hotmail.com --- dlls/d3drm/meshbuilder.c | 4 ++++ 1 file changed, 4 insertions(+)
diff --git a/dlls/d3drm/meshbuilder.c b/dlls/d3drm/meshbuilder.c index 1f783baf1fe..79e3a408885 100644 --- a/dlls/d3drm/meshbuilder.c +++ b/dlls/d3drm/meshbuilder.c @@ -1487,6 +1487,10 @@ static HRESULT WINAPI d3drm_mesh_builder3_Load(IDirect3DRMMeshBuilder3 *iface, v load_options = DXFILELOAD_FROMFILE; TRACE("Loading from file %s\n", debugstr_a(filename)); } + else if (loadflags == D3DRMLOAD_FROMRESOURCE) + { + load_options = DXFILELOAD_FROMRESOURCE; + } else { FIXME("Load options %ld not supported yet\n", loadflags);
We could just pass loadflags into IDirectXFile_CreateEnumObject as the flags for d3d and xfile are the same values. Then add a FIXME when CreateEnumObject fails.
Just another option if people would prefer.
Regards Alistair
On 1/6/22 20:09, Alistair Leslie-Hughes wrote:
From: Alistair Leslie-Hughes leslie_alistair@hotmail.com
Signed-off-by: Alistair Leslie-Hughes leslie_alistair@hotmail.com
dlls/d3drm/meshbuilder.c | 4 ++++ 1 file changed, 4 insertions(+)
diff --git a/dlls/d3drm/meshbuilder.c b/dlls/d3drm/meshbuilder.c index 1f783baf1fe..79e3a408885 100644 --- a/dlls/d3drm/meshbuilder.c +++ b/dlls/d3drm/meshbuilder.c @@ -1487,6 +1487,10 @@ static HRESULT WINAPI d3drm_mesh_builder3_Load(IDirect3DRMMeshBuilder3 *iface, v load_options = DXFILELOAD_FROMFILE; TRACE("Loading from file %s\n", debugstr_a(filename)); }
- else if (loadflags == D3DRMLOAD_FROMRESOURCE)
- {
load_options = DXFILELOAD_FROMRESOURCE;
- } else { FIXME("Load options %ld not supported yet\n", loadflags);
On 6/1/22 05:35, Alistair Leslie-Hughes wrote:
We could just pass loadflags into IDirectXFile_CreateEnumObject as the flags for d3d and xfile are the same values. Then add a FIXME when CreateEnumObject fails.
I'm inclined to think that makes the most sense, yes. Note however that only the D3DFMLOAD_FROM* values match; the others do not.