From da5345e0386a9f6fa182545a4334b03cf8ccc33c Mon Sep 17 00:00:00 2001 From: waker Date: Sat, 7 May 2011 11:22:41 +0200 Subject: ao: fixed reading aux psf libs from archives --- plugins/ao/eng_dsf/eng_dsf.c | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) (limited to 'plugins/ao/eng_dsf') diff --git a/plugins/ao/eng_dsf/eng_dsf.c b/plugins/ao/eng_dsf/eng_dsf.c index 6cab9509..af814dc0 100644 --- a/plugins/ao/eng_dsf/eng_dsf.c +++ b/plugins/ao/eng_dsf/eng_dsf.c @@ -69,19 +69,7 @@ void *dsf_start(const char *path, uint8 *buffer, uint32 length) { uint64 tmp_length; char libpath[PATH_MAX]; - const char *e = path + strlen(path); - while (e > path && *e != '/') { - e--; - } - if (*e == '/') { - e++; - memcpy (libpath, path, e-path); - libpath[e-path] = 0; - strcat (libpath, libfile); - } - else { - strcpy (libpath, libfile); - } + ao_getlibpath (path, s->c->lib, libpath, sizeof (libpath)); #if DEBUG_LOADER printf("Loading library: %s\n", libpath); -- cgit v1.2.3