mirror of https://github.com/stella-emu/stella.git
Fixed incorrect handling of ROM names within ZIP files when they're
not present in the ROM database; it seems I pruned a little too much code in a previous commit. git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@2739 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
This commit is contained in:
parent
1bdc9423bd
commit
e6dd326435
|
@ -156,7 +156,9 @@ void PropertiesSet::getMD5WithInsert(const FilesystemNode& rom,
|
|||
properties.set(Cartridge_MD5, md5);
|
||||
|
||||
// Create a name suitable for using in properties
|
||||
const string& filename = rom.getName();
|
||||
size_t pos = rom.getName().find_last_of("/\\");
|
||||
const string& filename = pos == string::npos ? rom.getName() :
|
||||
rom.getName().substr(pos+1);
|
||||
if(BSPF_endsWithIgnoreCase(filename, ".a26") ||
|
||||
BSPF_endsWithIgnoreCase(filename, ".bin") ||
|
||||
BSPF_endsWithIgnoreCase(filename, ".rom"))
|
||||
|
|
Loading…
Reference in New Issue