Atlas: Initial terrain-selection panel.

TextureManager: Skip *.jbf too.

This was SVN commit r3085.
This commit is contained in:
Ykkrosh
2005-11-03 03:49:57 +00:00
parent e527c66fda
commit 7bfe647366
21 changed files with 493 additions and 75 deletions
+7 -2
View File
@@ -109,9 +109,14 @@ void CTextureManager::LoadTextures(CTerrainPropertiesPtr props, const char* dir)
// may later be added and that interface doesn't support specifying
// multiple extensions.
const char* ext = strrchr(texture_name, '.');
if(!ext || !stricmp(ext, ".xml") || !stricmp(ext, ".xmb") || !stricmp(ext, ".dtd"))
if(!ext
|| !stricmp(ext, ".xml")
|| !stricmp(ext, ".xmb")
|| !stricmp(ext, ".dtd")
|| !stricmp(ext, ".jbf") // PSP browser files. (This list is getting quite long and ugly...)
)
continue;
// Also allow storage of temporary files in the texture directories
// Also allow storage of other temporary files in the texture directories
if(ext[strlen(ext)-1] == '~')
continue;