mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
* Codebase restructured to SourceSDK codebase style and .cpp/.h assertion paths in the game executable. * Document most functions with valve style 'Purpose' blocks. * Rename variables to match the rest of the codebase and Valve's naming convention. * Dedicated DLL and the SDKLauncher now share the same codebase as the DevSDK. * Obtain globals or pointers directly instead of waiting for runtime initialized data. * Dynamically search for all functions and globals (this doesn't count for dedicated yet!). * Initialize most in-SDK variables. * Move certain prints and other utilities under ConVars to reduce verbosity and increase performance. * Print all pattern scan results through a virtual function to make it easier to add and debug new patterns in the future. * Type global var pointers appropriately if class or type is known and implemented. * Forward declare 'CClient' class to avoid having 2 'g_pClient' copies. * Add IDA's pseudo definitions for easier prototyping with decompiled assembly code. * RPAK decompress Command callback implementation. * Load decompressed RPaks from 'paks\Win32\' overriding the ones in 'paks\Win64\' (the decompress callback will automatically fix the header and write it to 'paks\Win32\'). * VPK decompress Command callback implementation. * Move CRC32 ands Adler32 to implementation files. * Server will print out more details about the connecting client. * Upgrade ImGui lib to v1.86. * Don't compile id3dx.h for dedicated. * Don't compile id3dx.cpp for dedicated * Implement DevMsg print function allowing to print information to the in-game VGUI/RUI console overlay, ImGui console overlay and the external windows console * Fixed bug where the Error function would not properly terminate the process when an error is called. This caused access violations for critical/non-recoverable errors. * Fixed bug where the game would crash if the console or server browser was enabled while the game was still starting up. * Several bug fixes for the dedicated server (warning: dedicated is still considered work-in-progress!).
90 lines
3.5 KiB
C
90 lines
3.5 KiB
C
//////////////////////////////////////////////////////////////////////////////
|
|
//
|
|
// Detours Test Program (syelog.h of syelog.lib)
|
|
//
|
|
// Microsoft Research Detours Package
|
|
//
|
|
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
//
|
|
#pragma once
|
|
#ifndef _SYELOGD_H_
|
|
#define _SYELOGD_H_
|
|
#include <stdarg.h>
|
|
|
|
#pragma pack(push, 1)
|
|
#pragma warning(push)
|
|
#pragma warning(disable: 4200)
|
|
|
|
//////////////////////////////////////////////////////////////////////////////
|
|
//
|
|
//
|
|
#define SYELOG_PIPE_NAMEA "\\\\.\\pipe\\syelog"
|
|
#define SYELOG_PIPE_NAMEW L"\\\\.\\pipe\\syelog"
|
|
#ifdef UNICODE
|
|
#define SYELOG_PIPE_NAME SYELOG_PIPE_NAMEW
|
|
#else
|
|
#define SYELOG_PIPE_NAME SYELOG_PIPE_NAMEA
|
|
#endif
|
|
|
|
//////////////////////////////////////////////////////////////////////////////
|
|
//
|
|
#define SYELOG_MAXIMUM_MESSAGE 4086 // 4096 - sizeof(header stuff)
|
|
|
|
typedef struct _SYELOG_MESSAGE
|
|
{
|
|
USHORT nBytes;
|
|
BYTE nFacility;
|
|
BYTE nSeverity;
|
|
DWORD nProcessId;
|
|
FILETIME ftOccurance;
|
|
BOOL fTerminate;
|
|
CHAR szMessage[SYELOG_MAXIMUM_MESSAGE];
|
|
} SYELOG_MESSAGE, *PSYELOG_MESSAGE;
|
|
|
|
|
|
// Facility Codes.
|
|
//
|
|
#define SYELOG_FACILITY_KERNEL 0x10 // OS Kernel
|
|
#define SYELOG_FACILITY_SECURITY 0x20 // OS Security
|
|
#define SYELOG_FACILITY_LOGGING 0x30 // OS Logging-internal
|
|
#define SYELOG_FACILITY_SERVICE 0x40 // User-mode system daemon
|
|
#define SYELOG_FACILITY_APPLICATION 0x50 // User-mode application
|
|
#define SYELOG_FACILITY_USER 0x60 // User self-generated.
|
|
#define SYELOG_FACILITY_LOCAL0 0x70 // Locally defined.
|
|
#define SYELOG_FACILITY_LOCAL1 0x71 // Locally defined.
|
|
#define SYELOG_FACILITY_LOCAL2 0x72 // Locally defined.
|
|
#define SYELOG_FACILITY_LOCAL3 0x73 // Locally defined.
|
|
#define SYELOG_FACILITY_LOCAL4 0x74 // Locally defined.
|
|
#define SYELOG_FACILITY_LOCAL5 0x75 // Locally defined.
|
|
#define SYELOG_FACILITY_LOCAL6 0x76 // Locally defined.
|
|
#define SYELOG_FACILITY_LOCAL7 0x77 // Locally defined.
|
|
#define SYELOG_FACILITY_LOCAL8 0x78 // Locally defined.
|
|
#define SYELOG_FACILITY_LOCAL9 0x79 // Locally defined.
|
|
|
|
// Severity Codes.
|
|
//
|
|
#define SYELOG_SEVERITY_FATAL 0x00 // System is dead.
|
|
#define SYELOG_SEVERITY_ALERT 0x10 // Take action immediately.
|
|
#define SYELOG_SEVERITY_CRITICAL 0x20 // Critical condition.
|
|
#define SYELOG_SEVERITY_ERROR 0x30 // Error
|
|
#define SYELOG_SEVERITY_WARNING 0x40 // Warning
|
|
#define SYELOG_SEVERITY_NOTICE 0x50 // Significant condition.
|
|
#define SYELOG_SEVERITY_INFORMATION 0x60 // Informational
|
|
#define SYELOG_SEVERITY_AUDIT_FAIL 0x66 // Audit Failed
|
|
#define SYELOG_SEVERITY_AUDIT_PASS 0x67 // Audit Succeeeded
|
|
#define SYELOG_SEVERITY_DEBUG 0x70 // Debugging
|
|
|
|
// Logging Functions.
|
|
//
|
|
VOID SyelogOpen(PCSTR pszIdentifier, BYTE nFacility);
|
|
VOID Syelog(BYTE nSeverity, PCSTR pszMsgf, ...);
|
|
VOID SyelogV(BYTE nSeverity, PCSTR pszMsgf, va_list args);
|
|
VOID SyelogClose(BOOL fTerminate);
|
|
|
|
#pragma warning(pop)
|
|
#pragma pack(pop)
|
|
|
|
#endif // _SYELOGD_H_
|
|
//
|
|
///////////////////////////////////////////////////////////////// End of File.
|