From 6e7c0e15eb0c70f215696a5aade043aa564b48bd Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Thu, 27 Feb 2014 02:20:51 -0800 Subject: Use OpenDataFile to load soundfonts relative to data directories --- OpenAL32/alSoundfont.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'OpenAL32/alSoundfont.c') diff --git a/OpenAL32/alSoundfont.c b/OpenAL32/alSoundfont.c index 355c5b41..a89ce4d1 100644 --- a/OpenAL32/alSoundfont.c +++ b/OpenAL32/alSoundfont.c @@ -469,7 +469,7 @@ ALsoundfont *ALsoundfont_getDefSoundfont(ALCcontext *context) { FILE *f; - f = fopen(fname, "rb"); + f = OpenDataFile(fname, "openal/soundfonts"); if(f == NULL) ERR("Failed to open %s\n", fname); else -- cgit v1.2.3