filename fixes

This commit is contained in:
ejcoumans
2006-09-20 03:48:58 +00:00
parent 1a8db5a00e
commit 7dea1a911c
2 changed files with 14 additions and 8 deletions

View File

@@ -140,8 +140,19 @@ bool ColladaConverter::load(const char* orgfilename)
if (res != DAE_OK)
{
printf("DAE/Collada-m_dom: Couldn't load %s\n",filename);
} else
//some platforms might require different path, try two additional locations
char newname[256];
sprintf(newname,"../../%s",orgfilename);
filename = fixFileName(newname);
res = m_collada->load(filename);
if (res != DAE_OK)
{
printf("DAE/Collada-m_dom: Couldn't load %s\n",filename);
return false;
}
}
if (res == DAE_OK)
{
m_dom = m_collada->getDom(filename);