mirror of
https://github.com/Auties00/Reboot-Launcher.git
synced 2026-01-13 19:22:22 +01:00
27 lines
641 B
C++
27 lines
641 B
C++
#pragma once
|
|
|
|
#include "Object.h"
|
|
|
|
class UChannel : public UObject
|
|
{
|
|
public:
|
|
void StartBecomingDormant()
|
|
{
|
|
void (*StartBecomingDormantOriginal)(UChannel* Channel) = decltype(StartBecomingDormantOriginal)(this->VFTable[0x298 / 8]);
|
|
StartBecomingDormantOriginal(this);
|
|
}
|
|
|
|
bool IsPendingDormancy()
|
|
{
|
|
static auto BitfieldOffset = GetOffset("Connection") + 8;
|
|
return ((PlaceholderBitfield*)(__int64(this) + BitfieldOffset))->Seventh;
|
|
}
|
|
|
|
bool IsDormant()
|
|
{
|
|
static auto BitfieldOffset = GetOffset("Connection") + 8;
|
|
return ((PlaceholderBitfield*)(__int64(this) + BitfieldOffset))->Third;
|
|
}
|
|
|
|
int32 IsNetReady(bool Saturate);
|
|
}; |