Previous 15994 Revisions Next

r14352 Sunday 5th February, 2012 at 10:09:32 UTC by Fabio Priuli
workaround for softlist images ending up with the wrong basename. this fixes problems with nvram and snap handling in softlist, and with the wrong names being displayed in the File Manager when softlist items are mounted. no whatsnew.
[src/emu]diimage.c

src/emu/diimage.c
r14351r14352
193193   int loc3 = m_image_name.rchr(0,':');
194194   int loc = MAX(loc1,MAX(loc2,loc3));
195195   if (loc!=-1) {
196      m_basename = m_basename.substr(loc + 1,m_basename.len()-loc);
196      if (loc == loc3)
197      {
198         // temp workaround for softlists now that m_image_name contains the part name too (e.g. list:gamename:cart)
199         astring tmpstr = astring(m_basename.substr(0,loc));
200         int tmploc = tmpstr.rchr(0,':');
201         m_basename = m_basename.substr(tmploc + 1,loc-tmploc);
202      }
203      else
204         m_basename = m_basename.substr(loc + 1,m_basename.len()-loc);
197205   }
198206   m_basename_noext = m_basename.cpy(m_basename);
199207   m_filetype = "";

Previous 15994 Revisions Next


© 1998-2018 The MESS Team