summaryrefslogtreecommitdiffhomepage
path: root/src/l4dmm.c
diff options
context:
space:
mode:
authorMichael Smith <mikesmiffy128@gmail.com>2023-06-12 22:28:53 +0100
committerMichael Smith <mikesmiffy128@gmail.com>2023-06-12 23:06:47 +0100
commit7aa6bd1cd88db9cceef3d1c07cd7664cb47538be (patch)
treef9db39fedd4ddcc3dc29e370af5b1b9b9894a948 /src/l4dmm.c
parent7893ef46f85eb5a6021d6ab763ca84e382e64954 (diff)
Remove the terrible gameinfo.txt garbage at last
This also tidies up library handle grabbing with more os.h stuff, and improves the VDF creation logic - since we no longer store a couple of paths which makes it necessary to change that a bit anyway.
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) {