mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
23 lines
923 B
C++
23 lines
923 B
C++
#pragma once
|
|
#include <Windows.h>
|
|
#include <Psapi.h>
|
|
#include <sinks/basic_file_sink.h>
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
// Internals
|
|
BOOL FileExists(LPCTSTR szPath);
|
|
MODULEINFO GetModuleInfo(const char* szModule);
|
|
std::uint8_t* PatternScan(const char* module, const char* signature);
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
// Utility
|
|
void DbgPrint(LPCSTR sFormat, ...);
|
|
void HexDump(const char* szHeader, int nFunc, const void* pData, int nSize);
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
// Loggers
|
|
inline auto g_spddefault_logger = spdlog::basic_logger_mt("default_logger", "platform\\log\\default_r5.log");
|
|
inline auto g_spdnetchan_logger = spdlog::basic_logger_mt("netchan_logger", "platform\\log\\netchan_r5.log");
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|