From 26f8676b9b420390f4cd2cb9121dffbaeeabb918 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Tue, 8 Dec 2015 19:39:50 -0800 Subject: Fix slashes on the local path on Windows --- Alc/helpers.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Alc/helpers.c b/Alc/helpers.c index 3e8d9972..e9efddf3 100644 --- a/Alc/helpers.c +++ b/Alc/helpers.c @@ -866,6 +866,9 @@ vector_al_string SearchDataFiles(const char *match, const char *subdir) } free(cwdbuf); } +#define FIX_SLASH(i) do { if(*(i) == '/') *(i) = '\\'; } while(0) + VECTOR_FOR_EACH(char, path, FIX_SLASH); +#undef FIX_SLASH RecurseDirectorySearch(al_string_get_cstr(path), wmatch, &results); /* Search the local and global data dirs. */ -- cgit v1.2.3