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]>
57 lines
1.3 KiB
C++
57 lines
1.3 KiB
C++
#include <cstdarg>
|
|
#include <cstdint>
|
|
#include "Engine/Source/Storm/H/storm.h"
|
|
|
|
// INLINED: [0x0077EC47->0x0077EC57]
|
|
static int32_t ISMemGetAllocator(va_list arglist) {
|
|
*va_arg(arglist, uint32_t*) = 2;
|
|
return 1;
|
|
}
|
|
|
|
// INLINED: [0x0077EC65->0x0077EC67]
|
|
static int32_t ISMemGenerateReport(va_list arglist) {
|
|
return 0;
|
|
}
|
|
|
|
// INLINED: [0x0077EC65->0x0077EC67]
|
|
static int32_t ISMemMarkAllHeaps(va_list arglist) {
|
|
return 0;
|
|
}
|
|
|
|
// VERIFY: 0e4c94fd manual
|
|
// OFFSET: 0x0077EC00
|
|
static int32_t ISStrI64ToString(va_list arglist) {
|
|
int64_t num = va_arg(arglist, int64_t);
|
|
char* buf = va_arg(arglist, char*);
|
|
uint32_t destsize = va_arg(arglist, uint32_t);
|
|
Int64ToString(num, buf, destsize);
|
|
return 1;
|
|
}
|
|
|
|
// VERIFY: ab470637 manual
|
|
// OFFSET: 0x0077EC30
|
|
int32_t StormCallService(int32_t selector, ...) {
|
|
va_list arglist;
|
|
va_start(arglist, selector);
|
|
|
|
int32_t result = 0;
|
|
|
|
switch (selector) {
|
|
case STORM_SERVICE_GETALLOCATOR:
|
|
result = ISMemGetAllocator(arglist);
|
|
break;
|
|
case STORM_SERVICE_GENERATEREPORT:
|
|
result = ISMemGenerateReport(arglist);
|
|
break;
|
|
case STORM_SERVICE_I64TOSTRING:
|
|
result = ISStrI64ToString(arglist);
|
|
break;
|
|
case STORM_SERVICE_MARKALLHEAPS:
|
|
result = ISMemMarkAllHeaps(arglist);
|
|
break;
|
|
}
|
|
|
|
va_end(arglist);
|
|
return result;
|
|
}
|