summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/dislot.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/emu/dislot.cpp')
-rw-r--r--src/emu/dislot.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/emu/dislot.cpp b/src/emu/dislot.cpp
index 9e8a5128996..e30cd41d46f 100644
--- a/src/emu/dislot.cpp
+++ b/src/emu/dislot.cpp
@@ -9,6 +9,8 @@
#include "emu.h"
#include "emuopts.h"
#include "zippath.h"
+#include <algorithm>
+#include <cctype>
device_slot_interface::device_slot_interface(const machine_config &mconfig, device_t &device) :
@@ -129,3 +131,9 @@ bool get_default_card_software_hook::hashfile_extrainfo(std::string &extrainfo)
extrainfo = m_hash_extrainfo;
return m_has_hash_extrainfo;
}
+
+bool get_default_card_software_hook::is_filetype(std::string_view candidate_filetype) const
+{
+ return std::equal(m_file_type.begin(), m_file_type.end(), candidate_filetype.begin(), candidate_filetype.end(),
+ [] (unsigned char c1, unsigned char c2) { return std::tolower(c1) == c2; });
+}