mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
25 lines
1.1 KiB
C++
25 lines
1.1 KiB
C++
#pragma once
|
|
#include <thirdparty/spdlog/include/sinks/basic_file_sink.h>
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
// Internals
|
|
BOOL IsBadReadPtrV2(void* ptr);
|
|
BOOL FileExists(const char* szPath);
|
|
MODULEINFO GetModuleInfo(const char* szModule);
|
|
DWORD64 FindPatternSIMD(const char* szModule, const unsigned char* szPattern, const char* szMask);
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
// Utility
|
|
void DbgPrint(LPCSTR sFormat, ...);
|
|
void PrintLastError(void);
|
|
void HexDump(const char* szHeader, int nFunc, const void* pData, int nSize);
|
|
std::string Base64Encode(const std::string& in);
|
|
std::string Base64Decode(const std::string& in);
|
|
bool StringReplace(std::string& str, const std::string& from, const std::string& to);
|
|
std::string CreateDirectories(std::string svFilePath);
|
|
std::string ConvertToWinPath(const std::string& input);
|
|
std::string StringEscape(const std::string& input);
|
|
std::string StringUnescape(const std::string& input);
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|