LoopbackPacketSender:: - cngege/Mod GitHub Wiki

构造函数:

// LoopbackPacketSender::LoopbackPacketSender 参数
LoopbackPacketSender::LoopbackPacketSender(uchar,NetworkHandler &)
LoopbackPacketSender::LoopbackPacketSender(v30, *((_BYTE *)this + 1224), a3);

// ClientInstance::init 参数
unsigned __int64 __fastcall ClientInstance::init(
        ClientInstance *this,
        int a2,                                 // Core::FilePathManager
        NetworkHandler *a3,
        __int64 a4,                             // Timer
        __int64 a5,                             // Timer
        __int64 a6,                             // gsl::not_null<Bedrock::NonOwnerPointer<Social::IUserManager>> const&
        unsigned int a7,
        __int64 a8)                             // IGameModuleApp &
  • 首先通过字符串"A client task group" 定位 ClientInstance::init
  • 往下10行左右, 找到一个函数 有三个参数,第三个参数是 a3
  • 这个函数就是 LoopbackPacketSender::LoopbackPacketSender 结果
  v42 = (__int64 *)sub_140133870(&v171, *(_QWORD *)qword_145DDA168, v41, "A client task group");
  v43 = *v42;
  *v42 = 0LL;
  v44 = *(void (__fastcall ****)(_QWORD, __int64))(this + 1352);
  *(_QWORD *)(this + 1352) = v43;
  if ( v44 )
    (**v44)(v44, 1LL);
  if ( v171 )
    (**v171)(v171, 1LL);
  v45 = (__int64 *)sub_140324BF0(&v172, this + 1456, a3);
  v46 = *v45;
  *v45 = 0LL;
  v47 = *(void (__fastcall ****)(_QWORD, __int64))(this + 240);
  *(_QWORD *)(this + 240) = v46;