add cnc-ddraw version to log

This commit is contained in:
FunkyFr3sh 2023-09-22 01:56:10 +02:00
parent 5fa50fda51
commit b039d9d4d1
5 changed files with 24 additions and 10 deletions

View file

@ -7,6 +7,7 @@
#include "wndproc.h"
#include "debug.h"
#include "hook.h"
#include "version.h"
double g_dbg_frame_time = 0;
@ -103,6 +104,8 @@ void dbg_init()
g_dbg_log_file = fopen("cnc-ddraw-1.log", "w");
setvbuf(g_dbg_log_file, NULL, _IOLBF, 1024);
TRACE("cnc-ddraw version = %d.%d.%d.%d\n", VERSION_MAJOR, VERSION_MINOR, VERSION_BUILD, VERSION_REVISION);
HKEY hkey;
LONG status =
RegOpenKeyExA(HKEY_LOCAL_MACHINE, "SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion", 0L, KEY_READ, &hkey);