少年修仙传客户端基础资源
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
31
32
33
34
35
36
#include "il2cpp-config.h"
#include "os/Initialize.h"
#if IL2CPP_TARGET_WINDOWS
 
#include "os/Environment.h"
#include "os/WindowsRuntime.h"
 
#include "DllMain.h"
#include <crtdbg.h>
 
void il2cpp::os::Initialize()
{
#if _DEBUG
    std::string buildMachine = il2cpp::os::Environment::GetEnvironmentVariable("UNITY_THISISABUILDMACHINE");
    if (!buildMachine.empty())
    {
        _CrtSetReportMode(_CRT_ASSERT, _CRTDBG_MODE_FILE | _CRTDBG_MODE_DEBUG);
        _CrtSetReportFile(_CRT_ASSERT, _CRTDBG_FILE_STDOUT);
    }
#endif
 
    // This is needed so we could extract exception text from bad hresults
#if !IL2CPP_TINY_WITHOUT_DEBUGGER
    os::WindowsRuntime::EnableErrorReporting();
    os::InitializeDllMain();
#endif
}
 
#if !IL2CPP_TARGET_WINRT && !IL2CPP_TARGET_XBOXONE
void il2cpp::os::Uninitialize()
{
}
 
#endif
 
#endif