diff options
| author | 2017-05-18 19:33:15 +1000 | |
|---|---|---|
| committer | 2017-05-18 19:34:28 +1000 | |
| commit | 75dfd32e7125e074b3b1d497b0876dbd6838e87d (patch) | |
| tree | b5d7808a526a952331c50625afe0a95109fd5b85 /src/lib/util/corestr.cpp | |
| parent | a8c908b05ecddc4fcbdccdcf4b200947a0613a00 (diff) | |
Support -listroms for devices (e.g. mpu401 or m68705p3)
* Also ~67% improvement of device walk in -verifyroms
Diffstat (limited to 'src/lib/util/corestr.cpp')
| -rw-r--r-- | src/lib/util/corestr.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
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 |
