少年修仙传客户端基础资源
hch
2024-04-01 d01413b00ef631ac20347716b23818b0b811f65f
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
26
27
28
29
30
#include "il2cpp-config.h"
 
#if IL2CPP_TARGET_WINRT || IL2CPP_TARGET_XBOXONE
 
#include "os/Initialize.h"
#include "os/Win32/WindowsHelpers.h"
 
#if IL2CPP_TARGET_WINRT
#include "BrokeredFileSystem.h"
#endif
 
#include <io.h>
 
void il2cpp::os::Uninitialize()
{
#if IL2CPP_TARGET_WINRT
    BrokeredFileSystem::CleanupStatics();
#endif
 
    HANDLE stdoutHandle = reinterpret_cast<HANDLE>(_get_osfhandle(_fileno(stdout)));
    HANDLE stderrHandle = reinterpret_cast<HANDLE>(_get_osfhandle(_fileno(stderr)));
 
    if (stdoutHandle != INVALID_HANDLE_VALUE)
        FlushFileBuffers(stdoutHandle);
 
    if (stderrHandle != INVALID_HANDLE_VALUE)
        FlushFileBuffers(stderrHandle);
}
 
#endif