Files
SatyandClaude Opus 5.5 953240f57c BlizzardCore Log, SComp review, Win32/Win64 platform folders
System/Log (16 functions) and Thread::WaitForever. Storm SComp review:
ImaAdpcmCompress size compares are signed as in 12340. AllocSTL_raw and
CCritSect members marked INLINED; SSyncObject ctor out of the header.

Platform layout: Windows API code lives in <dir>/Win32/ (whole file in
#if WOWDECOMP_ARCH_32) with full copies in <dir>/Win64/ (ARCH_64);
no _M_X64 blocks inside files. Former W32/ and *_Win32.cpp files moved,
their headers are generic now. Win32 API calls moved out of generic
File/Log/Thread/Unicode/SCmd files; Storm SErr/SLog/SReg/SMsg moved
whole. CODING_RULES section 7, PORTING_64BIT "Platform folders".

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-09-24 16:16:55 +02:00

47 lines
1.1 KiB
C++

#include <cstdint>
#include "Engine/Source/Base/FileCache.h"
#include "Engine/Source/Storm/H/stpl.h"
#include "Engine/Source/Storm/H/storm.h"
#include "Engine/Source/Storm/Source/SLock.h"
// STATIC: 0x00B415F0
static TSHashTable<PrefetchNode, HASHKEY_STRI> s_activeFiles;
// STATIC: 0x00B41618
static TSHashTable<UncachableNode, HASHKEY_STRI> s_uncachableFiles;
// STATIC: 0x00B41640
static SCritSect s_critSect;
static void STORMAPI IBaseFileWaitForLoad(SOVERLAPPED* overlapped) {
}
// INLINED
PrefetchNode::PrefetchNode() {
this->buffer = nullptr;
this->refCount = 0;
SFile::CreateOverlapped(&this->overlapped);
}
// INLINED
PrefetchNode::~PrefetchNode() {
if (this->buffer) {
IBaseFileWaitForLoad(&this->overlapped);
SMemFree(this->buffer, __FILE__, __LINE__, 0);
}
SFile::DestroyOverlapped(&this->overlapped);
}
void BaseFileInitialize() {
}
// VERIFY: 3f61d363 manual
// OFFSET: 0x0047C600
void BaseFileDestroy() {
s_critSect.Enter();
s_activeFiles.Clear();
s_uncachableFiles.Clear();
s_critSect.Leave();
}