HELP V39
Does anyone know what the GameObjectManager traversal in v39 version looks like?
The code before v39: UINT64 SDK::GetObj(UINT64 obj, std::string name) { if (!obj) { return 0; } UINT64 start = R8(obj + 0x30); UINT num = R4(obj + 0x40); if (start) { for (size_t i = 0; i < num; i++) { UINT64 addr = R8(start + 8 + i * 0x10); if (addr) { addr = R8(addr + 0x28); if (addr) { std::string tname = getClassName(addr); if (tname == name) { return addr; } } } } } return 0; }
UINT64 SDK::GOM(std::string name) { UINT64 temp = R8(BaseGom); if (temp) { UINT64 last = R8(temp + 0x20); if (last) { last = R8(last + 0x10); if (last) { UINT64 next = R8(temp + 0x28); UINT64 obj = 0; while (next && last != obj) { obj = R8(next + 0x10); if (obj) { UINT64 ret = GetObj(obj, name); if (ret) { return ret; } } else { break; } next = R8(next + 0x08); } } } } return 0; }
Source: Perfare/Il2CppDumper