Skip to content

Commit

Permalink
Merge branch 'newbugfixes' into bugfixes
Browse files Browse the repository at this point in the history
  • Loading branch information
vexed committed Jan 27, 2014
2 parents 90f9ef0 + 016b717 commit e0dd069
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/init.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -564,17 +564,20 @@ static bool CheckInMap(const char *archive, const char *mountpoint,const char *l
exit(-1);
}

std::string checkpath = lookin;
checkpath.append("/");
char **filelist = PHYSFS_enumerateFiles(lookin);
for (char **file = filelist; *file != NULL; ++file)
{
if (PHYSFS_isDirectory(*file))
std::string checkfile = *file;
if (PHYSFS_isDirectory((checkpath+checkfile).c_str()))
{
std::string checkfile = *file;
if (checkfile.compare("wrf")==0 || checkfile.compare("stats")==0 ||checkfile.compare("components")==0
|| checkfile.compare("anims")==0 || checkfile.compare("effects")==0 ||checkfile.compare("messages")==0
|| checkfile.compare("audio")==0 || checkfile.compare("sequenceaudio")==0 ||checkfile.compare("misc")==0
|| checkfile.compare("features")==0 || checkfile.compare("script")==0 ||checkfile.compare("structs")==0
|| checkfile.compare("tileset")==0 || checkfile.compare("images")==0 || checkfile.compare("texpages")==0 )
|| checkfile.compare("tileset")==0 || checkfile.compare("images")==0 || checkfile.compare("texpages")==0
|| checkfile.compare("skirmish")==0 )
{
debug(LOG_WZ, "Detected: %s %s" , archive, checkfile.c_str());
mapmod = true;
Expand Down

0 comments on commit e0dd069

Please sign in to comment.