1
0
mirror of https://github.com/FunkyFr3sh/cnc-ddraw.git synced 2025-03-15 06:04:49 +01:00

add wine version to logs

This commit is contained in:
FunkyFr3sh 2021-05-23 05:19:21 +02:00
parent 64e2ddac0b
commit 7b2c6616a1

View File

@ -75,6 +75,12 @@ void dbg_init()
RegQueryValueExA(hkey, "BuildLab", NULL, NULL, (PVOID)&build, &build_size);
dbg_printf("%s (%s)\n", name, build);
const char* (CDECL * wine_get_version)() =
(void*)GetProcAddress(GetModuleHandleA("ntdll.dll"), "wine_get_version");
if (wine_get_version)
dbg_printf("Wine version = %s\n", wine_get_version());
}
}
}