Files
wowdecomp/Engine/Source/Services/SysMessage.cpp
T
SatyandClaude Opus 5.5 e866c1c2ad Texture T2: AsyncFile module, async texture handlers, GxTex cache update
- AsyncFile reader: queues, thread, alloc/free/cancel, priority queueing,
  poll/wait/wait-all, destroy; CAsyncQueue/CAsyncThread types and statics
- Texture: AsyncTexture success/failure/handler/status, TextureUpdate,
  TextureCacheUpdate, ResolveMipLevel
- SFile::IsStreamingMode, Streaming::IsStreamingMode, SFile::GetActualFileName,
  SysMsgAdd (both), empty SFile::SetFilePriority (folds into 0x47ADD0)
- CAsyncObject field types from users (SFileImpl*, uint8_t priority)
- GxTest --textures-async: runs the real async path

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-09-25 20:46:48 +02:00

29 lines
699 B
C++

#include <cstdint>
#include "Engine/Source/Services/SysMessage.h"
#include "Engine/Source/Storm/H/storm.h"
// VERIFY: e98afe5a manual
// OFFSET: 0x004B4F60
int32_t SysMsgAdd(const char* text, STATUS_TYPE severity) {
if (!text || severity >= STATUS_NUMTYPES) {
SErrSetLastError(STORM_ERROR_INVALID_PARAMETER);
return 0;
}
return 1;
}
// VERIFY: 852e1d4d manual
// OFFSET: 0x004B4F90
int32_t SysMsgAdd(CStatus* status) {
if (status->IsEmpty()) {
return 1;
}
char* text = status->GetErrorStrAlloc(STATUS_INFO, nullptr);
int32_t result = SysMsgAdd(text, status->m_highestSeverity);
SMemFree(text, __FILE__, __LINE__, 0);
return result;
}