Mercurial > hg > sidinfo
changeset 401:600bd0c3dd83
Update to match changes in th-libs API. Also use case-insensitive
filename matching for Windows/DOS, case-sensitive for *NIX.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Fri, 10 Feb 2023 02:49:17 +0200 |
parents | b095a35a0848 |
children | 95a8e05dae27 |
files | sidinfo.c |
diffstat | 1 files changed, 7 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/sidinfo.c Tue Jan 03 00:06:07 2023 +0200 +++ b/sidinfo.c Fri Feb 10 02:49:17 2023 +0200 @@ -1117,7 +1117,13 @@ closedir(dirh); } else - if (pattern == NULL || th_strmatch(filename, pattern)) + if (pattern == NULL || +#ifdef TH_FS_CASE_INSENSITIVE + th_strcasematch(filename, pattern, true) +#else + th_strmatch(filename, pattern, true) +#endif + ) { siHandleSIDFile(npath); }