src/emu/diimage.c
| r14351 | r14352 | |
| 193 | 193 | int loc3 = m_image_name.rchr(0,':'); |
| 194 | 194 | int loc = MAX(loc1,MAX(loc2,loc3)); |
| 195 | 195 | 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); |
| 197 | 205 | } |
| 198 | 206 | m_basename_noext = m_basename.cpy(m_basename); |
| 199 | 207 | m_filetype = ""; |