[PATCH] d3dxof: Add string expansion extension to d3dxof and make d3dx9_36 use it.

Alexandre Julliard julliard at winehq.org
Thu May 9 16:01:40 CDT 2013


Christian Costa <titan.costa at gmail.com> writes:

> Le 09/05/2013 22:05, Alexandre Julliard a écrit :
>> 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.
>>
> The d3dxof extension itself or how it is enabled ?

Adding private extensions is not allowed, unless you can make a very
convincing argument that there's no other possible option.

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list