From 7aa6bd1cd88db9cceef3d1c07cd7664cb47538be Mon Sep 17 00:00:00 2001 From: Michael Smith Date: Mon, 12 Jun 2023 22:28:53 +0100 Subject: 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. --- src/l4dmm.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'src/l4dmm.c') 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) { -- cgit v1.2.3