comment string dtor & add +1 to dlsym

This commit is contained in:
altalk23 2023-09-15 19:59:55 +03:00
parent 9906a8ff78
commit 7c55b215d1
2 changed files with 3 additions and 5 deletions

View file

@ -122,8 +122,8 @@ std::string generateAddressHeader(Root const& root) {
}
else if (codegen::shouldAndroidBind(fn)) {
auto const mangled = generateAndroidSymbol(c, fn);
address_str = fmt::format(
"reinterpret_cast<uintptr_t>(dlsym(reinterpret_cast<void*>(geode::base::get()), \"{}\"))",
address_str = fmt::format( // thumb
"reinterpret_cast<uintptr_t>(dlsym(reinterpret_cast<void*>(geode::base::get()), \"{}\")) + 1",
mangled
);
}

View file

@ -38,9 +38,7 @@ namespace gd {
string::~string() {
if (m_data == nullptr) return;
reinterpret_cast<void (*)(_internal_string*)>(geode::base::get() + 0x5054bc)(
&m_data[-1]
);
// reinterpret_cast<void (*)(string*)>(geode::base::get() + 0x5054bc)(this);
}
bool string::operator<(string const& other) const {