Updated MeshInfos code

Former-commit-id: c0162cdec26d2dbc4a2ebe8e4595e3c6974c755d
This commit is contained in:
Lynix 2013-03-30 18:04:50 +01:00
parent 60e9d14a92
commit c56c1b10dd
1 changed files with 3 additions and 2 deletions

View File

@ -30,10 +30,11 @@ int main()
}
std::vector<NzString> models;
while (resourceDirectory.NextResult(true))
while (resourceDirectory.NextResult())
{
NzString path = resourceDirectory.GetResultName();
if (path.EndsWith(".md2") || path.EndsWith(".md5mesh"))
NzString ext = path.SubstrFrom('.', -1, true); // Tout ce qui vient après le dernier '.' de la chaîne
if (NzMeshLoader::IsExtensionSupported(ext)) // L'extension est-elle supportée par le MeshLoader ?
models.push_back(path);
}