暫無描述
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Initialize.cpp 657B

123456789101112131415161718192021222324252627
  1. #include "il2cpp-config.h"
  2. #if IL2CPP_TARGET_WINRT
  3. #include "os/Initialize.h"
  4. #include "os/Win32/WindowsHelpers.h"
  5. #include "os/BrokeredFileSystem.h"
  6. #include "os/Locale.h"
  7. #include <io.h>
  8. void il2cpp::os::Uninitialize()
  9. {
  10. BrokeredFileSystem::CleanupStatics();
  11. Locale::UnInitializeWinRT();
  12. HANDLE stdoutHandle = reinterpret_cast<HANDLE>(_get_osfhandle(_fileno(stdout)));
  13. HANDLE stderrHandle = reinterpret_cast<HANDLE>(_get_osfhandle(_fileno(stderr)));
  14. if (stdoutHandle != INVALID_HANDLE_VALUE)
  15. FlushFileBuffers(stdoutHandle);
  16. if (stderrHandle != INVALID_HANDLE_VALUE)
  17. FlushFileBuffers(stderrHandle);
  18. }
  19. #endif