Fixed an issue where MAME BIOSes and devices would sometimes not get filtered.

This commit is contained in:
Leon Styhre 2021-02-28 16:36:42 +01:00
parent 9c957ee93c
commit 74c7254c6a

View file

@ -175,6 +175,8 @@ const bool MameNames::find(std::vector<std::string> devices, const std::string&
size_t end = devices.size();
while (start < end) {
if (!strcmp(devices[start].c_str(), name.c_str()))
return true;
const size_t index = (start + end) / 2;
const int compare = strcmp(devices[index].c_str(), name.c_str());