Azpazeta maps in AZP_HOME fails to load

Bug #1193010 reported by Adrián Arroyo Calle
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Azpazeta
New
Undecided
Unassigned

Bug Description

Path to this bug:
#ifdef WIN32
 //Check if map is in the ROOT or in the HOME
 if(info_xml.BeforeLast('\\').EndsWith(wxT(".azpazeta\maps")))
 {
 //In HOME
 AzpMount* mount=new AzpMount(info_xml);
 Start* frame=new Start(wxT("Azpazeta JUNO"),PathFinder::GetUserPath()+wxT("/.azpazeta")+mount->mainmap);
 frame->Show();
 }else{
 //In ROOT
 AzpMount* mount=new AzpMount(info_xml);
 Start* frame=new Start(wxT("Azpazeta JUNO"),azppath+mount->mainmap);
 frame->Show();
 }
#else
  //Check if map is in the ROOT or in the HOME
 if(info_xml.BeforeLast('/').EndsWith(wxT(".azpazeta/maps")))
 {
 //In HOME
 AzpMount* mount=new AzpMount(info_xml);
 Start* frame=new Start(wxT("Azpazeta JUNO"),PathFinder::GetUserPath()+wxT("/.azpazeta")+mount->mainmap);
 frame->Show();
 }else{
 //In ROOT
 AzpMount* mount=new AzpMount(info_xml);
 Start* frame=new Start(wxT("Azpazeta JUNO"),azppath+mount->mainmap);
 frame->Show();
 }
#endif

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

#ifdef WIN32
 //Check if map is in the ROOT or in the HOME
 if(info_xml.StartsWith(PathFinder::GetUserPath()))
 {
 //In HOME
 AzpMount* mount=new AzpMount(info_xml);
 Start* frame=new Start(wxT("Azpazeta JUNO"),PathFinder::GetUserPath()+wxT("/.azpazeta")+mount->mainmap);
 frame->Show();
 }else{
 //In ROOT
 AzpMount* mount=new AzpMount(info_xml);
 Start* frame=new Start(wxT("Azpazeta JUNO"),azppath+mount->mainmap);
 frame->Show();
 }
#else
  //Check if map is in the ROOT or in the HOME
 if(info_xml.BeforeLast('/').EndsWith(wxT(".azpazeta/maps")))
 {
 //In HOME
 AzpMount* mount=new AzpMount(info_xml);
 Start* frame=new Start(wxT("Azpazeta JUNO"),PathFinder::GetUserPath()+wxT("/.azpazeta")+mount->mainmap);
 frame->Show();
 }else{
 //In ROOT
 AzpMount* mount=new AzpMount(info_xml);
 Start* frame=new Start(wxT("Azpazeta JUNO"),azppath+mount->mainmap);
 frame->Show();
 }
#endif

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

Also there is a bug in azpapi.cpp. You need to change:
PathFinder::GetUserPath()+mapname to PathFinder::GetUserPath()+wxT("/.azpazeta"+mapname)

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.