rodecomp/Source/Client/Mode/ModeLifetime.cpp
ragnarok-clanker 48a326c099 Decompile fn_06352 (ApplyServiceOptionFlags)
Batch #14772 by SapitoSucio: 0 byte-identical, 1 confirmed by peer review.

- fn_06352 ApplyServiceOptionFlags: logic confirmed by peer review

Peer-reviewed-by: ragnarok-clanker, Tanke, codeplay
Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
2026-11-07 17:59:07 +00:00

26 lines
670 B
C++

#include "Client/Mode/CMode.h"
#include "Client/Session.h"
#include "Contents/Configuration/ServiceConfiguration.h"
// OFFSET: 0x00AD5290
// FUNCTION: fn_17819
int CSession::SetServiceFlags(int first, int second) {
const int serviceType = g_serviceType;
if (serviceType == 0 || serviceType == 6 || serviceType == 0xA || serviceType == 0xC || serviceType == 2) {
g_serviceFlag05 = first != 0;
g_serviceFlag06 = second != 0;
}
return serviceType;
}
// OFFSET: 0x00AD53B0
// FUNCTION: fn_17821
void* __fastcall sub_AD53B0(void* self) {
*reinterpret_cast<int*>(self) = 1;
return self;
}
// OFFSET: 0x00AD53C0
// FUNCTION: fn_17822
CMode::~CMode() {
}