Client bring-up: login, realm list, world auth, character select
- Grunt login ported end to end (SRP6 challenge/proof, version checksum, realm list) and tested against a live server: authenticates, connects to the world server (auth session with proof-of-work, header crypt), receives the character list and shows character select - Glue: realm list UI, character select (list, models, scripts), character create screen + name generator, delete/rename/decline, Enter World up to the loading screen; loading screen drawing and progress - AccountData (times, update, upload/download), BannedAddOns, addon scan and addon info, client cache version, tutorial flags - Shutdown path at login state: world/map/liquid/weather teardown, NetClient, ComSat, streaming stop; Logitech LCD no-device path in Ui/UILCD/Windows - PCRE 5.0 vendored (core stock; chartables and the posix layer from 12340), ValidateName - Fixes: TSGrowableArray::CalcChunkSize clamps to >= 8 (crash on char list), CWorldScene liquid renderer allocation, CMapFootprintTexture element ctor, pointer render states on x64, CFrustum/CWFrustum layout, M2 draw callback arguments, 37 class/struct forward-declaration mismatches - IDB name sync (1217 names), verify aliases, harness large-element instantiation Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
This commit is contained in:
@@ -1088,6 +1088,59 @@ int32_t STORMAPI SFile::ReadFile(SArchive* archive, const char* name, void** dat
|
||||
return 1;
|
||||
}
|
||||
|
||||
// VERIFY: a77cc075 manual
|
||||
// OFFSET: 0x00424FA0
|
||||
int32_t STORMAPI SFile::List(SArchive* archive, int32_t (*callback)(const char* fileName, void* param), void* param) {
|
||||
if (archive->unk_0000 != 0 && archive->unk_0000 != 1) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
SFileImpl* file;
|
||||
|
||||
if (!SFile::OpenEx(archive, "(listfile)", 0, &file)) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
uint32_t size = SFileGetFileSize(file, nullptr);
|
||||
char* data = static_cast<char*>(Blizzard::Memory::Allocate(size));
|
||||
uint32_t bytesRead;
|
||||
|
||||
if (!SFileReadFile(file, data, size, &bytesRead, nullptr, 0)) {
|
||||
Blizzard::Memory::Free(data, 0, __FILE__, __LINE__);
|
||||
SFileCloseFile(file);
|
||||
return 0;
|
||||
}
|
||||
|
||||
SFileCloseFile(file);
|
||||
|
||||
char* end = data + size;
|
||||
char name[512];
|
||||
char* dest = name;
|
||||
name[0] = '\0';
|
||||
|
||||
for (char* src = data; src < end; src++) {
|
||||
char c = *src;
|
||||
|
||||
if (c == '\r' || c == '\n') {
|
||||
*dest = '\0';
|
||||
|
||||
if (name[0]) {
|
||||
if (!Blizzard::String::EqualI(Blizzard::String::FindExtension(name), "md5") && !callback(name, param)) {
|
||||
break;
|
||||
}
|
||||
|
||||
dest = name;
|
||||
}
|
||||
} else if (dest < &name[sizeof(name) - 1]) {
|
||||
*dest++ = c;
|
||||
}
|
||||
}
|
||||
|
||||
Blizzard::Memory::Free(data);
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
// VERIFY: 9a40aba6 auto
|
||||
// OFFSET: 0x00424F50
|
||||
int32_t STORMAPI SFile::LoadFile(const char* name, void** data, uint32_t* size, uint32_t extra, SOVERLAPPED* overlapped) {
|
||||
|
||||
Reference in New Issue
Block a user