- WowClientDB.h: WowClientDB_Base, IDatabase<T>, WowClientDB_Common<T> (Load), WowClientDB<T> and WowClientDB_RLE<T> (Spell, ItemDisplayInfo, Light*Band) with OFFSET lists for every 12340 instance; WowClientDB.cpp: base dtor, RLE row codec. - Records are classes (0.5.3 decorations) with out-of-line ctor/dtor/GetFilename/Read in DB/Rec/*.cpp, static s_numColumns/s_rowSize/s_generatedID; ID field m_id. - DBClient.cpp: 239 table globals, StaticDBLoadAll, ClientDBInitialize (6 callees declared, tracked); Startup_Strings in Client.cpp, VideoHardware in Hardware.cpp. - IDB synced (410 names, snapshot Wow.exe.pre_clientdb_20260926.idb). Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
42 lines
1.3 KiB
C++
42 lines
1.3 KiB
C++
#include "WoW/Source/DB/Rec/PaperDollItemFrameRec.h"
|
|
#include "Engine/Source/BlizzardCore/SFile2-Core.h"
|
|
|
|
PaperDollItemFrameRec::PaperDollItemFrameRec() {
|
|
}
|
|
|
|
PaperDollItemFrameRec::~PaperDollItemFrameRec() {
|
|
}
|
|
|
|
// VERIFY: 1696320d auto
|
|
// OFFSET: 0x008B4CB0
|
|
const char* PaperDollItemFrameRec::GetFilename() {
|
|
return "DBFilesClient\\PaperDollItemFrame.dbc";
|
|
}
|
|
|
|
// VERIFY: 64d49e0c auto
|
|
// OFFSET: 0x008B4CC0
|
|
bool PaperDollItemFrameRec::Read(SFileImpl* file, const char* stringBuffer) {
|
|
uint32_t itemButtonNameOffset;
|
|
uint32_t slotIconOffset;
|
|
|
|
int32_t itemButtonNameRead = SFileReadFile(file, &itemButtonNameOffset, sizeof(itemButtonNameOffset), nullptr, nullptr, 0);
|
|
int32_t slotIconRead = SFileReadFile(file, &slotIconOffset, sizeof(slotIconOffset), nullptr, nullptr, 0);
|
|
int32_t slotNumberRead = SFileReadFile(file, &this->m_slotNumber, sizeof(this->m_slotNumber), nullptr, nullptr, 0);
|
|
|
|
if (!itemButtonNameRead
|
|
| !slotIconRead
|
|
| !slotNumberRead) {
|
|
return false;
|
|
}
|
|
|
|
if (stringBuffer) {
|
|
this->m_itemButtonName = &stringBuffer[itemButtonNameOffset];
|
|
this->m_slotIcon = &stringBuffer[slotIconOffset];
|
|
} else {
|
|
this->m_itemButtonName = "";
|
|
this->m_slotIcon = "";
|
|
}
|
|
|
|
return true;
|
|
}
|