New game window not recongnize maps under AZP_HOME

Bug #1192264 reported by Adrián Arroyo Calle
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Azpazeta
In Progress
Critical
Adrián Arroyo Calle

Bug Description

If you start a map with new game screen, the maps under AZP_HOME doesn`t appear

Revision history for this message
Adrián Arroyo Calle (adrian-arroyocalle) wrote :

Works with this after comment:
//Checking maps in Azpazeta

wxArrayString dirListHome;
 wxDir azphome(azphomestr+wxT("/.azpazeta/maps"));
 wxString dirHome = azphome.GetName();
        azproot.GetAllFiles(dirHome, &dirListHome, wxEmptyString, wxDIR_DIRS | wxDIR_FILES);
 for(count=0;count<dirListHome.GetCount();count++)
 {
#ifdef WIN32
  if(dirListHome[count].AfterLast('\\').Cmp(wxT("info.xml"))==0)
  {
   mapAvalibles.Add(dirListHome[count]);

  }
#else
  if(dirListHome[count].AfterLast('/').Cmp(wxT("info.xml"))==0)
  {
   mapAvalibles.Add(dirListHome[count]);

  }
#endif

 }

Changed in azpazeta:
assignee: nobody → Adrián Arroyo Calle (adrian-arroyocalle)
status: Confirmed → In Progress
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.