loop = true;
}
+ if (strcmp(com_token, "\n") && strcmp(com_token, "//"))
+ {
+ while (COM_ParseToken_Simple(&bufptr, true, false, false)) // fetch newline
+ {
+ if (strcmp(com_token, "\n") && strcmp(com_token, "//"))
+ Con_Printf("framegroups file: extra data (%s) found, skipped\n", com_token);
+ else
+ break;
+ }
+ }
+
name = NULL;
if(!strcmp(com_token, "//"))
{
{
name = com_token;
// skip to EOL
- while (*bufptr && *bufptr != '\n' && *bufptr != '\r')
+ while (*bufptr && !(*bufptr == '\n' || *bufptr == '\r'))
+ bufptr++;
+ while (*bufptr && (*bufptr == '\n' || *bufptr == '\r'))
bufptr++;
}
}
}
+ //Con_Printf("data: %d %d %d %f %d (%s)\n", i, start, len, fps, loop, name);
if(cb)
cb(i, start, len, fps, loop, name, pass);