mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-07-21 05:09:46 -06:00
Fixed unhandled error status for LastSep(std::string) (#1645)
This commit is contained in:
@ -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
|
||||||
|
Reference in New Issue
Block a user