Batch #13426 by SapitoSucio: 3 byte-identical, 0 confirmed by peer review. - fn_24219 CSession::SendClientOption: byte-identical - fn_24227 CSession::SendHomunculusAutoFeedOption: byte-identical - fn_24234 CSession::SendPetAutoFeedOption: byte-identical Merged automatically: every function is byte-identical to the original.
47 lines
1.3 KiB
C++
47 lines
1.3 KiB
C++
#include "Network/ClientOptionPacket.h"
|
|
#include "Client/Session.h"
|
|
#include "Network/Connection/Connection.h"
|
|
#include "Network/Packets/PacketLengths.h"
|
|
|
|
#include <cstdint>
|
|
|
|
namespace {
|
|
#pragma pack(push, 1)
|
|
struct ClientOptionPacket {
|
|
/* 0000 */ std::int16_t id;
|
|
/* 0002 */ int option;
|
|
/* 0006 */ int value;
|
|
};
|
|
#pragma pack(pop)
|
|
static_assert(sizeof(ClientOptionPacket) == 10);
|
|
}
|
|
|
|
// OFFSET: 0x00E48400
|
|
// FUNCTION: fn_24219
|
|
void CSession::SendClientOption(unsigned char value) {
|
|
ClientOptionPacket packet;
|
|
packet.id = 0x02D8;
|
|
packet.option = 6;
|
|
packet.value = value;
|
|
GetRagConnection().Send(reinterpret_cast<PacketLengths&>(GetRagConnection()).FixedLength(packet.id), &packet);
|
|
}
|
|
|
|
// OFFSET: 0x00E48BA0
|
|
// FUNCTION: fn_24227
|
|
void CSession::SendHomunculusAutoFeedOption(unsigned char enabled) {
|
|
ClientOptionPacket packet;
|
|
packet.id = 0x02D8;
|
|
packet.option = 3;
|
|
packet.value = enabled;
|
|
GetRagConnection().Send(reinterpret_cast<PacketLengths&>(GetRagConnection()).FixedLength(packet.id), &packet);
|
|
}
|
|
|
|
// OFFSET: 0x00E49380
|
|
// FUNCTION: fn_24234
|
|
void CSession::SendPetAutoFeedOption(unsigned char enabled) {
|
|
ClientOptionPacket packet;
|
|
packet.id = 0x02D8;
|
|
packet.option = 2;
|
|
packet.value = enabled;
|
|
GetRagConnection().Send(reinterpret_cast<PacketLengths&>(GetRagConnection()).FixedLength(packet.id), &packet);
|
|
}
|