1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
| #include "os/c-api/il2cpp-config-platforms.h"
|
| #if !IL2CPP_TINY_WITHOUT_DEBUGGER
|
| #include "os/TimeZone.h"
| #include "Allocator.h"
|
| #include <string>
|
| extern "C"
| {
| int32_t UnityPalGetTimeZoneData(int32_t year, int64_t data[4], const char* names[2])
| {
| std::string namesBuffer[2];
| bool dst_inverted;
| int32_t result = il2cpp::os::TimeZone::GetTimeZoneData(year, data, namesBuffer, &dst_inverted);
|
| names[0] = Allocator::CopyToAllocatedStringBuffer(namesBuffer[0]);
| names[1] = Allocator::CopyToAllocatedStringBuffer(namesBuffer[1]);
|
| return result;
| }
| }
|
| #endif
|
|