- 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]>
71 lines
2.9 KiB
C++
71 lines
2.9 KiB
C++
#include "WoW/Source/DB/Rec/EmotesTextDataRec.h"
|
|
#include "Engine/Source/BlizzardCore/SFile2-Core.h"
|
|
#include "WoW/Source/Client.h"
|
|
|
|
EmotesTextDataRec::EmotesTextDataRec() {
|
|
}
|
|
|
|
EmotesTextDataRec::~EmotesTextDataRec() {
|
|
}
|
|
|
|
// VERIFY: 7ca9d324 auto
|
|
// OFFSET: 0x008AEDD0
|
|
const char* EmotesTextDataRec::GetFilename() {
|
|
return "DBFilesClient\\EmotesTextData.dbc";
|
|
}
|
|
|
|
// VERIFY: 6b2d837d auto
|
|
// OFFSET: 0x008B1A60
|
|
bool EmotesTextDataRec::Read(SFileImpl* file, const char* stringBuffer) {
|
|
uint32_t textOffset[16];
|
|
uint32_t textFlags;
|
|
|
|
int32_t idRead = SFileReadFile(file, &this->m_id, sizeof(this->m_id), nullptr, nullptr, 0);
|
|
int32_t textRead0 = SFileReadFile(file, &textOffset[0], sizeof(textOffset[0]), nullptr, nullptr, 0);
|
|
int32_t textRead1 = SFileReadFile(file, &textOffset[1], sizeof(textOffset[1]), nullptr, nullptr, 0);
|
|
int32_t textRead2 = SFileReadFile(file, &textOffset[2], sizeof(textOffset[2]), nullptr, nullptr, 0);
|
|
int32_t textRead3 = SFileReadFile(file, &textOffset[3], sizeof(textOffset[3]), nullptr, nullptr, 0);
|
|
int32_t textRead4 = SFileReadFile(file, &textOffset[4], sizeof(textOffset[4]), nullptr, nullptr, 0);
|
|
int32_t textRead5 = SFileReadFile(file, &textOffset[5], sizeof(textOffset[5]), nullptr, nullptr, 0);
|
|
int32_t textRead6 = SFileReadFile(file, &textOffset[6], sizeof(textOffset[6]), nullptr, nullptr, 0);
|
|
int32_t textRead7 = SFileReadFile(file, &textOffset[7], sizeof(textOffset[7]), nullptr, nullptr, 0);
|
|
int32_t textRead8 = SFileReadFile(file, &textOffset[8], sizeof(textOffset[8]), nullptr, nullptr, 0);
|
|
int32_t textRead9 = SFileReadFile(file, &textOffset[9], sizeof(textOffset[9]), nullptr, nullptr, 0);
|
|
int32_t textRead10 = SFileReadFile(file, &textOffset[10], sizeof(textOffset[10]), nullptr, nullptr, 0);
|
|
int32_t textRead11 = SFileReadFile(file, &textOffset[11], sizeof(textOffset[11]), nullptr, nullptr, 0);
|
|
int32_t textRead12 = SFileReadFile(file, &textOffset[12], sizeof(textOffset[12]), nullptr, nullptr, 0);
|
|
int32_t textRead13 = SFileReadFile(file, &textOffset[13], sizeof(textOffset[13]), nullptr, nullptr, 0);
|
|
int32_t textRead14 = SFileReadFile(file, &textOffset[14], sizeof(textOffset[14]), nullptr, nullptr, 0);
|
|
int32_t textRead15 = SFileReadFile(file, &textOffset[15], sizeof(textOffset[15]), nullptr, nullptr, 0);
|
|
int32_t textFlagsRead = SFileReadFile(file, &textFlags, sizeof(textFlags), nullptr, nullptr, 0);
|
|
|
|
if (!idRead
|
|
| !textRead0
|
|
| !textRead1
|
|
| !textRead2
|
|
| !textRead3
|
|
| !textRead4
|
|
| !textRead5
|
|
| !textRead6
|
|
| !textRead7
|
|
| !textRead8
|
|
| !textRead9
|
|
| !textRead10
|
|
| !textRead11
|
|
| !textRead12
|
|
| !textRead13
|
|
| !textRead14
|
|
| !textRead15
|
|
| !textFlagsRead) {
|
|
return false;
|
|
}
|
|
|
|
if (stringBuffer) {
|
|
this->m_text = &stringBuffer[textOffset[s_locale]];
|
|
} else {
|
|
this->m_text = "";
|
|
}
|
|
|
|
return true;
|
|
}
|