Fix slashes on the local path on Windows

This commit is contained in:
Chris Robinson
2015-12-08 19:39:50 -08:00
parent f8a4ef6f51
commit 26f8676b9b
+3
View File
@@ -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. */