distinguish between files and directories

listfiles now optionally sorts the list and removes doubles
This commit is contained in:
ac-stef
2017-06-12 18:17:15 +02:00
parent 7a02ccd8b7
commit 661ee6eff2
8 changed files with 161 additions and 36 deletions
+1 -2
View File
@@ -1493,8 +1493,7 @@ int loadallxmaps() // at game start, load all xmaps from mapediting/xmaps
{
vector<char *> xmapnames;
string filename;
listfiles(xmapspath, "xmap", xmapnames);
xmapnames.sort(stringsort);
listfiles(xmapspath, "xmap", xmapnames, stringsort);
loopv(xmapnames)
{
loadxmap(xmapnames[i]);