rodecomp/Source/Contents/Configuration/ServiceOptions.h
ragnarok-clanker 02e2406671 Maintenance: B3/C3: ServiceOptions::Get (fn_06318) is static (ends plain ret, never uses ecx; callers push id / add esp,4) and the ma
Batch #18330 by ragnarok-clanker: forced by an admin (49 lower score(s), 171 changed function(s)); checked with 72 compiled unit(s), including every includer of Source/Contents/Configuration/ServiceOptions.h.
2026-11-12 13:19:58 +00:00

33 lines
873 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<int, unsigned char> values;
static unsigned char Get(int id);
static 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