From 75dfd32e7125e074b3b1d497b0876dbd6838e87d Mon Sep 17 00:00:00 2001 From: Vas Crabb Date: Thu, 18 May 2017 19:33:15 +1000 Subject: Support -listroms for devices (e.g. mpu401 or m68705p3) * Also ~67% improvement of device walk in -verifyroms --- src/lib/util/corestr.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/lib/util/corestr.cpp') diff --git a/src/lib/util/corestr.cpp b/src/lib/util/corestr.cpp index 4431f6d08ac..66b12f6ee04 100644 --- a/src/lib/util/corestr.cpp +++ b/src/lib/util/corestr.cpp @@ -107,6 +107,16 @@ int core_strwildcmp(const char *sp1, const char *sp2) return core_stricmp(s1, s2); } +bool core_iswildstr(const char *sp) +{ + for ( ; sp && *sp; sp++) + { + if (('?' == *sp) || ('*' == *sp)) + return true; + } + return false; +} + /*------------------------------------------------- core_strdup - string duplication via malloc -- cgit v1.2.3