mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-09-21 20:06:40 +00:00
Atlas: Initial terrain-selection panel.
TextureManager: Skip *.jbf too. This was SVN commit r3085.
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user