mirror of
https://github.com/Auties00/Reboot-Launcher.git
synced 2026-01-13 11:12:23 +01:00
<feat: New project structure>
<feat: New release>
This commit is contained in:
16
dependencies/reboot/Project Reboot 3.0/DataChannel.cpp
vendored
Normal file
16
dependencies/reboot/Project Reboot 3.0/DataChannel.cpp
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
#include "Channel.h"
|
||||
#include "NetConnection.h"
|
||||
|
||||
int32 UChannel::IsNetReady(bool Saturate)
|
||||
{
|
||||
static auto NumOutRecOffset = 0x4C;
|
||||
|
||||
if (*(int*)(__int64(this) + NumOutRecOffset) < 255)
|
||||
{
|
||||
static auto ConnectionOffset = GetOffset("Connection");
|
||||
auto Connection = Get<UNetConnection*>(ConnectionOffset);
|
||||
return Connection->IsNetReady(Saturate);
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user