Files
wowdecomp/Engine/Source/Base/FileCache.cpp
T
SatyandClaude Opus 5.5 cccfd26213 Move Storm to Engine/Source/Storm; SFile.cpp to BlizzardCore
Storm moves under Engine/Source with its inner layout unchanged. All
includes use Engine/Source/Storm/..., Storm's include guards follow the
new path, and the top-level CMakeLists adds Engine/Source/Storm.
SFile.cpp (SFile::CreateOverlapped/DestroyOverlapped) moves to
Engine/Source/BlizzardCore.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-09-24 03:33:51 +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/W32/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();
}