Decompile fn_06416 (CItemDBToIDMgr::Init)

Batch #1183 by eAthena: 1 byte-identical, 0 confirmed by peer review.

- fn_06416 CItemDBToIDMgr::Init: byte-identical

Merged automatically: every function is byte-identical to the original.
Adds to the build: Source/Contents/ItemDBToIDMgr.cpp
This commit is contained in:
ragnarok-clanker 2026-10-27 20:58:33 +00:00
commit c0c2f5f5bc
4 changed files with 52 additions and 0 deletions

View file

@ -0,0 +1,21 @@
#include "Contents/ItemDBToIDMgr.h"
#include <new>
// GLOBAL: gl_24498
CItemDBToIDMgr* g_itemDbToIdMgr = nullptr;
// OFFSET: 0x006C7400
// OFFSET: 0x006C7450
// FUNCTION: fn_06416
void CItemDBToIDMgr::Init() {
}
// OFFSET: 0x006C74D0
// OFFSET: 0x006C7540
// OFFSET: 0x006C7670
// OFFSET: 0x00E5CE60

View file

@ -0,0 +1,29 @@
#ifndef RAGNAROK_SOURCE_CONTENTS_ITEMDBTOIDMGR_H
#define RAGNAROK_SOURCE_CONTENTS_ITEMDBTOIDMGR_H
#include "Script/LuaInstance.h"
#include <string>
class CItemDBToIDMgr {
public:
CItemDBToIDMgr();
virtual ~CItemDBToIDMgr();
static CItemDBToIDMgr* GetInstance();
void Init();
bool Load();
int GetItemID(std::string itemDBName);
protected:
/* 0004 */ CLuaInstance m_lua;
};
extern CItemDBToIDMgr* g_itemDbToIdMgr;
#if defined(_WIN32) && !defined(_WIN64)
static_assert(sizeof(CItemDBToIDMgr) == 12);
#endif
#endif

View file

@ -19,6 +19,7 @@ public:
void SetGlobal(const std::string& name, int value);
void SetGlobal(const std::string& name, double value);
int ReadStrings(std::vector<std::string>& values, const char* global);
lua_State* GetState() const { return this->m_state; }
protected:
/* 0004 */ lua_State* m_state;

View file

@ -331,6 +331,7 @@
"Source/Contents/Hotkeys/UserHotkeyMgr.cpp": 4,
"Source/Contents/Hotkeys/UserHotkeyScript.cpp": 4,
"Source/Contents/InstantVar.cpp": 0,
"Source/Contents/ItemDBToIDMgr.cpp": 4,
"Source/Contents/Items/ItemDescription.cpp": 4,
"Source/Contents/Items/ItemInfo.cpp": 4,
"Source/Contents/Items/ItemLink.cpp": 4,