[PATCH] d3dxof: Add string expansion extension to d3dxof and make d3dx9_36 use it.
Alexandre Julliard
julliard at winehq.org
Thu May 9 15:05:34 CDT 2013
Christian Costa <titan.costa at gmail.com> writes:
> @@ -677,6 +677,7 @@ HRESULT WINAPI D3DXFileCreate(ID3DXFile **d3dxfile)
> {
> ID3DXFileImpl *object;
> HRESULT ret;
> + const char expand_string[] = "expand_string";
>
> TRACE("(%p)\n", d3dxfile);
>
> @@ -701,6 +702,11 @@ HRESULT WINAPI D3DXFileCreate(ID3DXFile **d3dxfile)
> object->ID3DXFile_iface.lpVtbl = &ID3DXFile_Vtbl;
> object->ref = 1;
>
> + /* Enable string expansion extension in d3dxof */
> + ret = IDirectXFile_RegisterTemplates(object->dxfile, (void*)expand_string, sizeof(expand_string));
> + if (ret != DXFILE_OK)
> + ERR("Native d3dxof.dll used. Use builtin one to avoid problem.\n");
That's really ugly. You have to find a better way.
--
Alexandre Julliard
julliard at winehq.org
More information about the wine-devel
mailing list