changeset 5768:c6a76d35f3b1

ugly hack for morgands
author alex
date Sun, 21 Apr 2002 16:11:42 +0000
parents 97de70b5377f
children f28c734f20b3
files loader/module.c
diffstat 1 files changed, 8 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/loader/module.c	Sun Apr 21 16:10:50 2002 +0000
+++ b/loader/module.c	Sun Apr 21 16:11:42 2002 +0000
@@ -405,7 +405,14 @@
 
 	if (!wm)
 	    printf("Win32 LoadLibrary failed to load: %s\n", checked);
-
+	else
+	{
+	    extern char *win32_codec_name;
+	    printf("Loaded %s to address %p\n", libname, wm->module);
+	    /* XXX: FIXME, _VERY_ UGLY HACK */
+	    if (!strcmp(libname, "m3jpegdec.ax"))
+		win32_codec_name = strdup("m3jpeg32.dll");
+	}
 
 	return wm ? wm->module : 0;
 }