rodecomp/Source/Contents/Configuration/ServiceOptions.h
ragnarok-clanker 8552c60086 Decompile fn_23604 (CSession::LoadOptionInfo)
Batch #8272 by eAthena: 0 byte-identical, 1 confirmed by peer review.

- fn_23604 CSession::LoadOptionInfo: logic confirmed by peer review

Peer-reviewed-by: Yommy, System4z, pedrao
Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
2026-10-31 16:00:20 +00:00

33 lines
888 B
C++

#ifndef RAGNAROK_SOURCE_CONTENTS_CONFIGURATION_SERVICEOPTIONS_H
#define RAGNAROK_SOURCE_CONTENTS_CONFIGURATION_SERVICEOPTIONS_H
#include "Contents/Skills/PlayerSkillBundle.h"
#include "Utility/Singleton.h"
#include <unordered_map>
#include <utility>
enum ServiceOption : int { ConfineCursor = 271 };
class CGameSettingsMgr;
bool IsServiceOption(int id);
std::pair<int, unsigned char> FindServiceOption(const char* name);
int SetOption(const char* name, unsigned char value);
struct ServiceOptions {
/* 0000 */ std::unordered_map<std::uint32_t, unsigned char, SkillIdHash> values;
unsigned char Get(int id) const;
bool Set(int id, unsigned char value);
};
extern ServiceOptions g_serviceOptions;
extern float g_serviceOptionJitterScale;
extern bool g_showBattleFieldIcon;
#if defined(_WIN32) && !defined(_WIN64)
static_assert(sizeof(ServiceOptions) == 0x20);
#endif
#endif