1.1 --- a/sourcemm/episode2/provider_ep2.cpp Mon Oct 08 20:23:16 2007 +0000
1.2 +++ b/sourcemm/episode2/provider_ep2.cpp Mon Oct 08 20:42:32 2007 +0000
1.3 @@ -518,7 +518,24 @@
1.4 #endif
1.5 }
1.6
1.7 - if (dict)
1.8 + #if !defined OS_WIN32
1.9 + if (dict == NULL)
1.10 + {
1.11 + char path[255];
1.12 + if (GetFileOfAddress(vfunc, path, sizeof(path)))
1.13 + {
1.14 + void *handle = dlopen(path, RTLD_NOW);
1.15 + if (handle != NULL)
1.16 + {
1.17 + void *addr = dlsym(handle, "usermessages");
1.18 + dict = (UserMsgDict *)*(void **)addr;
1.19 + dlclose(handle);
1.20 + }
1.21 + }
1.22 + }
1.23 + #endif
1.24 +
1.25 + if (dict != NULL)
1.26 {
1.27 int msg_count = dict->Count();
1.28