Files
wowdecomp/Engine/Source/ComSat/ComSatInterface.cpp
T
SatyandClaude Opus 5.5 c790ecb4a0 Port Streaming/Storage/Transport/HTTP, Mopaq write path and missing-function batches
- Streaming: StreamingManager, Manifests, Storage (.part files, write queue),
  Transport (HTTP split download, throttle), Tracker/StartupReport, streaming
  filestack verbs (s_streamstack, StreamingOpen), RepairCache static
- URL: HttpRequest, InternetCallback, ReadResponseData, DownloadURL
- Mopaq write path: SFileCreateArchive/CreateFile/WriteFile, IOMpqWriteUnit,
  WriteArchiveChanges, RebuildHashTable, listfile acquire/release;
  SComp::Compress with RLE/zlib/bzip2/pkware compressors; MPQEncrypt::Encrypt
- LaunchChildProcessWithArguments, Debug::DefaultCallback/Breakpoint
- Earlier batches: ComSat, Battlenet Tumor, Glue/Ui/WowServices fixes,
  luaL_error returns in Script_ files

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-10-03 16:51:23 +02:00

47 lines
1.5 KiB
C++

#include "Engine/Source/ComSat/ComSatInterface.h"
#include "Engine/Source/ComSat/ComSatManager.h"
#include "Engine/Source/ComSat/ComSatNetwork.h"
#include "Engine/Source/ComSat/ComSatSoundManager.h"
#include <new>
// STATIC: 0x00D43988
static ComSat::Sound::Manager* s_soundManager;
// STATIC: 0x00D4398C
static ComSat::Network::Manager* s_networkManager;
// INLINED
ComSat::Allocator::~Allocator() {
}
// VERIFY: 452c7806 auto
// OFFSET: 0x00880B30
void ComSat::Interface::Destroy(ComSat::Interface* comsat, ComSat::Allocator& allocator) {
if (comsat) {
comsat->~Interface();
allocator.Free(comsat);
}
if (s_soundManager) {
ComSat::Sound::Manager* soundManager = s_soundManager;
soundManager->~Manager();
allocator.Free(soundManager);
s_soundManager = nullptr;
}
if (s_networkManager) {
ComSat::Network::Manager* networkManager = s_networkManager;
networkManager->~Manager();
allocator.Free(networkManager);
s_networkManager = nullptr;
}
}
// VERIFY: 5430b1ec manual
// OFFSET: 0x00880F30
ComSat::Interface* ComSat::Interface::Create(const ComSat::Initialization& init, ComSat::Allocator& allocator) {
s_soundManager = new (allocator.Alloc(sizeof(ComSat::Sound::Manager))) ComSat::Sound::Manager(init, allocator);
s_networkManager = new (allocator.Alloc(sizeof(ComSat::Network::Manager))) ComSat::Network::Manager(init, allocator);
return new (allocator.Alloc(sizeof(ComSat::Manager))) ComSat::Manager(*s_soundManager, *s_networkManager, init, allocator);
}