model->strSkin = NULL;
model = model->pNext;
}
-
+
if (pList->modelpath) {
free(pList->modelpath);
pList->modelpath = NULL;
free(pList->skinpath);
pList->skinpath = NULL;
}
-
+
free(pList->name);
free(pList->comments);
free(pList);
void EClass_InsertSortedList(eclass_t *&pList, eclass_t *e)
{
eclass_t *s;
-
+
if (!pList)
{
pList = e;
EClass_InsertSortedList(eclass, e);
#else
eclass_t *s;
-
+
if (!eclass)
{
eclass = e;
if (pFiles)
{
-
+
// find an eclass without a modelpath.
for (e=eclass ; e ; e=e->next)
{
char relPath[PATH_MAX];
strcpy(relPath, "scripts/");
strcat(relPath, (char*)pFile->data);
- // FIXME TTimo http://zerowing.idsoftware.com/bugzilla/show_bug.cgi?id=130
if (!vfsGetFullPath(relPath, 0, 0))
{
Sys_FPrintf(SYS_ERR, "Failed to find the full path for '%s' in the VFS\n", relPath);
- Sys_FPrintf(SYS_ERR, "did you hit bug http://zerowing.idsoftware.com/bugzilla/show_bug.cgi?id=130 ?\n");
}
else
pTable->m_pfnScanFile(vfsGetFullPath(relPath, 0, 0));
// start by creating the default unknown eclass
eclass_bad = EClass_Create("UNKNOWN_CLASS" , 0, 0.5, 0,NULL,NULL,NULL);
-
+
// now scan the definitions
_EClassTable *pTable = &g_EClassDefTable;
while (pTable)
char relPath[PATH_MAX];
strcpy(relPath, "scripts/");
strcat(relPath, (char*)pFile->data);
- // FIXME TTimo http://zerowing.idsoftware.com/bugzilla/show_bug.cgi?id=130
char *fullpath = vfsGetFullPath(relPath, 0, 0);
if (!fullpath)
{
Sys_FPrintf(SYS_ERR, "Failed to find the full path for \"%s\" in the VFS\n", relPath);
- Sys_FPrintf(SYS_ERR, "did you hit bug http://zerowing.idsoftware.com/bugzilla/show_bug.cgi?id=130 ?\n");
}
else
pTable->m_pfnScanFile(fullpath);
}
else
Sys_FPrintf(SYS_ERR, "Didn't find any scripts/*.%s files to load EClass information\n", pTable->m_pfnGetExtension());
-
+
// we deal with two formats max, if the other table exists, loop again
if (g_bHaveEClassExt && pTable == &g_EClassDefTable)
pTable = &g_EClassExtTable;