mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-06-28 09:59:41 -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;
|
||||
|
||||
int pos = LastSep(filename);
|
||||
basepath = filename.substr(0, pos);
|
||||
if(pos != -1)
|
||||
basepath = filename.substr(0, pos);
|
||||
romname = filename.substr(pos+1);
|
||||
}
|
||||
#ifdef ARCHIVE_SUPPORT_ENABLED
|
||||
|
Reference in New Issue
Block a user