Added macro so that ConCommands created with the SDK's CON_COMMAND and CON_COMMAND_F macros can be properly registered and unregisterd
1 /* ======== SourceMM ========
2 * Copyright (C) 2004-2005 Metamod:Source Development Team
3 * No warranties of any kind
7 * Author(s): David "BAILOPAN" Anderson
8 * ============================
12 * @brief Implements OS-dependant functions from oslink.h
21 #if defined __WIN32__ || defined _WIN32 || defined WIN32
24 static char buf[1024];
25 FormatMessage(FORMAT_MESSAGE_FROM_SYSTEM | FORMAT_MESSAGE_IGNORE_INSERTS,
27 MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT),
28 (LPTSTR) &buf, 0, NULL);