fix: DebugLog hooks, works now
This commit is contained in:
12
user/utils/utils.cpp
Normal file
12
user/utils/utils.cpp
Normal file
@@ -0,0 +1,12 @@
|
||||
#include "pch-il2cpp.h"
|
||||
#include "utils.hpp"
|
||||
#include "helpers.h"
|
||||
|
||||
std::string ToString(app::Object* object) {
|
||||
std::string type = il2cppi_to_string(app::Object_ToString(object, NULL));
|
||||
if (type == "System.String") {
|
||||
return il2cppi_to_string((app::String*)object);
|
||||
}
|
||||
return type;
|
||||
}
|
||||
|
||||
4
user/utils/utils.hpp
Normal file
4
user/utils/utils.hpp
Normal file
@@ -0,0 +1,4 @@
|
||||
#pragma once
|
||||
#include <string>
|
||||
|
||||
std::string ToString(app::Object* object);
|
||||
Reference in New Issue
Block a user