r5sdk/r5dev/include/utility.h
Amos cb0e72fc0a Forward console output to in-game console
Light cleanup. Hook RSON loading for debugging and improvements for console overlay.

TODO: fix thread lock on concomand execute from Present(..)
2021-06-16 16:43:03 -07:00

17 lines
643 B
C

#pragma once
#include <Windows.h>
#include <Psapi.h>
/////////////////////////////////////////////////////////////////////////////
// Internals
BOOL FileExists(LPCTSTR szPath);
MODULEINFO GetModuleInfo(const char* szModule);
DWORD64 FindPattern(const char* szModule, const unsigned char* szPattern, const char* szMask);
/////////////////////////////////////////////////////////////////////////////
// Utility
void DbgPrint(LPCSTR sFormat, ...);
void HexDump(const char* szHeader, const char* szFile, const char* szMode, int nFunc, const void* pData, int nSize);
/////////////////////////////////////////////////////////////////////////////