Commit e79b7473 authored by Christian Costa's avatar Christian Costa Committed by Alexandre Julliard

d3dxof: Handle comments in templates text format.

parent 675327c0
......@@ -226,7 +226,7 @@ static HRESULT WINAPI IDirectXFileImpl_CreateEnumObject(IDirectXFile* iface, LPV
goto error;
}
if (header[2] == XOFFILE_FORMAT_TEXT)
if (header[2] == XOFFILE_FORMAT_BINARY)
{
FIXME("Binary format not supported yet\n");
hr = DXFILEERR_NOTDONEYET;
......@@ -560,6 +560,24 @@ static WORD parse_TOKEN_dbg_opt(parse_buffer * buf, BOOL show_token)
if (!read_bytes(buf, &c, 1))
return 0;
/*TRACE("char = '%c'\n", is_space(c) ? ' ' : c);*/
if ((c == '#') || (c == '/'))
{
/* Handle comment (# or //) */
if (c == '/')
{
if (!read_bytes(buf, &c, 1))
return 0;
if (c != '/')
return 0;
}
c = 0;
while (c != 0x0A)
{
if (!read_bytes(buf, &c, 1))
return 0;
}
continue;
}
if (is_space(c))
continue;
if (is_operator(c) && (c != '<'))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment