forked from focus-creative-games/il2cpp_plus
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathNativeMethods.cpp
More file actions
31 lines (24 loc) · 753 Bytes
/
NativeMethods.cpp
File metadata and controls
31 lines (24 loc) · 753 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
31
#include "os/c-api/il2cpp-config-platforms.h"
#if !RUNTIME_TINY
#include "os/NativeMethods.h"
#include "os/c-api/Process-c-api.h"
extern "C"
{
int32_t UnityPalNativeCloseProcess(UnityPalProcessHandle* handle)
{
return il2cpp::os::NativeMethods::CloseProcess(handle);
}
int32_t UnityPalNativeGetExitCodeProcess(UnityPalProcessHandle* handle, int32_t* exitCode)
{
return il2cpp::os::NativeMethods::GetExitCodeProcess(handle, exitCode);
}
int32_t UnityPalNativeGetCurrentProcessId()
{
return il2cpp::os::NativeMethods::GetCurrentProcessId();
}
UnityPalProcessHandle* UnityPalNativeGetCurrentProcess()
{
return il2cpp::os::NativeMethods::GetCurrentProcess();
}
}
#endif