Files
SatyandClaude Opus 5.5 ca050459be Os pass 1: System, path and time helpers
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-09-25 14:53:30 +02:00

27 lines
530 B
C++

#if defined(WOWDECOMP_ARCH_64)
#include <cstdint>
#include <ctime>
#include <windows.h>
#include "Engine/Source/Os/Time.h"
// OFFSET: 0x0086D450
int32_t OsGetTimeZone() {
TIME_ZONE_INFORMATION information;
if (GetTimeZoneInformation(&information) == TIME_ZONE_ID_INVALID) {
return 0;
}
return -information.Bias;
}
// OFFSET: 0x0086D490
void OsGetTimeStamp(char* buffer, uint32_t size) {
__time32_t now;
_time32(&now);
strftime(buffer, size, "%m%d%y_%H%M%S", _localtime32(&now));
}
#endif