summaryrefslogtreecommitdiffhomepage
path: root/src/l4dmm.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/l4dmm.c')
-rw-r--r--src/l4dmm.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/l4dmm.c b/src/l4dmm.c
index 3c7a07c..d391584 100644
--- a/src/l4dmm.c
+++ b/src/l4dmm.c
@@ -95,13 +95,7 @@ const char *l4dmm_curcampaign(void) {
}
INIT {
- // XXX: ugh, we NEED to centralise library stuff at some point, this sucks
-#ifdef _WIN32
- void *mmlib = GetModuleHandleW(L"matchmaking.dll");
-#else
- void *mmlib = dlopen("matchmaking.so", RTLD_NOW | RTLD_NOLOAD);
- if (mmlib) dlclose(mmlib);
-#endif
+ void *mmlib = os_dlhandle(OS_LIT("matchmaking") OS_LIT(OS_DLSUFFIX));
if (mmlib) {
ifacefactory factory = (ifacefactory)os_dlsym(mmlib, "CreateInterface");
if (!factory) {