From 70fbc2b1ff254295338c6d42b41d9fdb43b02d8f Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sat, 3 Oct 2015 20:41:18 -0700 Subject: Add a function to get a list of data files The method takes a marked-up filename (e.g. may include %r for a sample rate, %% for %, etc), and returns a vector of strings of found filenames that match. It will search the CWD, the local, and global data directories, in that order. --- OpenAL32/Include/alMain.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'OpenAL32') diff --git a/OpenAL32/Include/alMain.h b/OpenAL32/Include/alMain.h index 5051baf7..837d9e76 100644 --- a/OpenAL32/Include/alMain.h +++ b/OpenAL32/Include/alMain.h @@ -971,6 +971,8 @@ void FillCPUCaps(ALuint capfilter); FILE *OpenDataFile(const char *fname, const char *subdir); +vector_al_string SearchDataFiles(const char *match, const char *subdir); + /* Small hack to use a pointer-to-array type as a normal argument type. * Shouldn't be used directly. */ typedef ALfloat ALfloatBUFFERSIZE[BUFFERSIZE]; -- cgit v1.2.3