mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
* Fixed assert on ImGui on IBrowser because ImGui::Begin wasn't followed up by ImGui::End * FileExists got modernized. Using std library instead of Windows native functions now. * RTech::DecompressedSize is actually readable now thanks to steyk. * Same goes for RTech::Decompress * rtech_decompress prints the decompressed file CRC32 now and writes the file all at once. * Fixed ImGui assert on spamming SetupImGui();
20 lines
871 B
C++
20 lines
871 B
C++
#pragma once
|
|
#include <thirdparty/spdlog/include/sinks/basic_file_sink.h>
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
// Internals
|
|
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 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);
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|