mirror of
https://github.com/FunkyFr3sh/cnc-ddraw.git
synced 2025-03-24 17:49:52 +01:00
add wine version to logs
This commit is contained in:
parent
64e2ddac0b
commit
7b2c6616a1
@ -75,6 +75,12 @@ void dbg_init()
|
|||||||
RegQueryValueExA(hkey, "BuildLab", NULL, NULL, (PVOID)&build, &build_size);
|
RegQueryValueExA(hkey, "BuildLab", NULL, NULL, (PVOID)&build, &build_size);
|
||||||
|
|
||||||
dbg_printf("%s (%s)\n", name, build);
|
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());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user