Fixed unhandled error status for LastSep(std::string) (#1645)
This commit is contained in:
parent
79dfb8dc8f
commit
808292e424
|
@ -521,7 +521,8 @@ bool LoadROM(QStringList filepath, bool reset)
|
||||||
filelen = (u32)len;
|
filelen = (u32)len;
|
||||||
|
|
||||||
int pos = LastSep(filename);
|
int pos = LastSep(filename);
|
||||||
basepath = filename.substr(0, pos);
|
if(pos != -1)
|
||||||
|
basepath = filename.substr(0, pos);
|
||||||
romname = filename.substr(pos+1);
|
romname = filename.substr(pos+1);
|
||||||
}
|
}
|
||||||
#ifdef ARCHIVE_SUPPORT_ENABLED
|
#ifdef ARCHIVE_SUPPORT_ENABLED
|
||||||
|
|
Loading…
Reference in New Issue