This commit is contained in:
HolographicHat
2023-02-09 21:18:51 +08:00
parent d93f6f92c0
commit 52ae44f467
7 changed files with 31 additions and 34 deletions

View File

@@ -14,7 +14,7 @@ VOID DisableVMProtect() {
#pragma region StringConvert
string IlStringToString(Il2CppString* str, UINT codePage) {
string ToString(Il2CppString* str, UINT codePage) {
auto chars = reinterpret_cast<const wchar_t*>(str->chars);
auto len = WideCharToMultiByte(codePage, 0, chars, -1, nullptr, 0, nullptr, nullptr);
auto buffer = new char[len];
@@ -24,14 +24,6 @@ string IlStringToString(Il2CppString* str, UINT codePage) {
#pragma endregion
#pragma region GC
UINT32 GCHandle_New(void* object, bool pinned) {
return il2cpp_gchandle_new((Il2CppObject*)object, pinned);
}
#pragma endregion
#pragma region ByteUtils
bool IsLittleEndian() {