mirror of
https://github.com/geode-sdk/geode.git
synced 2024-11-27 09:55:34 -05:00
comment string dtor & add +1 to dlsym
This commit is contained in:
parent
9906a8ff78
commit
7c55b215d1
2 changed files with 3 additions and 5 deletions
|
@ -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
|
||||
);
|
||||
}
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue