mirror of
https://github.com/geode-sdk/geode.git
synced 2025-02-17 00:30:26 -05:00
Update AddressGen.cpp
This commit is contained in:
parent
da56b0b4f2
commit
ec22fd45c8
1 changed files with 6 additions and 1 deletions
|
@ -103,7 +103,12 @@ std::string generateAddressHeader(Root& root) {
|
|||
);
|
||||
}
|
||||
else if (codegen::getStatus(field) == BindStatus::NeedsBinding) {
|
||||
address_str = fmt::format("base::get() + 0x{:x}", codegen::platformNumber(fn->binds));
|
||||
if (field.parent.rfind("cocos2d::", 0) == 0 && codegen::platform == Platform::Windows) {
|
||||
address_str = fmt::format("base::getCocos() + 0x{:x}", codegen::platformNumber(fn->binds));
|
||||
}
|
||||
else {
|
||||
address_str = fmt::format("base::get() + 0x{:x}", codegen::platformNumber(fn->binds));
|
||||
}
|
||||
}
|
||||
else {
|
||||
continue;
|
||||
|
|
Loading…
Reference in a new issue