forked from focus-creative-games/il2cpp_plus
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathInitialize.cpp
More file actions
30 lines (21 loc) · 686 Bytes
/
Initialize.cpp
File metadata and controls
30 lines (21 loc) · 686 Bytes
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