|
2 | 2 | // This file is automatically generated. Changes to this file may be overwritten. |
3 | 3 |
|
4 | 4 | #if DEBUG |
5 | | - #define EOS_DEBUG |
| 5 | +#define EOS_DEBUG |
6 | 6 | #endif |
7 | 7 |
|
8 | 8 | #if UNITY_EDITOR |
9 | | - #define EOS_EDITOR |
| 9 | +#define EOS_EDITOR |
10 | 10 | #endif |
11 | 11 |
|
12 | 12 | #if UNITY_EDITOR || UNITY_STANDALONE || UNITY_PS4 || UNITY_XBOXONE || UNITY_SWITCH || UNITY_IOS || UNITY_ANDROID |
13 | | - #define EOS_UNITY |
| 13 | +#define EOS_UNITY |
14 | 14 | #endif |
15 | 15 |
|
16 | 16 | #if UNITY_EDITOR_WIN || UNITY_STANDALONE_WIN || PLATFORM_64BITS || PLATFORM_32BITS |
17 | | - #if UNITY_EDITOR_WIN || UNITY_64 || PLATFORM_64BITS |
18 | | - #define EOS_PLATFORM_WINDOWS_64 |
19 | | - #else |
20 | | - #define EOS_PLATFORM_WINDOWS_32 |
21 | | - #endif |
| 17 | +#if UNITY_EDITOR_WIN || UNITY_64 || PLATFORM_64BITS |
| 18 | +#define EOS_PLATFORM_WINDOWS_64 |
| 19 | +#else |
| 20 | +#define EOS_PLATFORM_WINDOWS_32 |
| 21 | +#endif |
22 | 22 |
|
23 | 23 | #elif UNITY_EDITOR_OSX || UNITY_STANDALONE_OSX |
24 | | - #define EOS_PLATFORM_OSX |
| 24 | +#define EOS_PLATFORM_OSX |
| 25 | + |
| 26 | +#elif UNITY_EDITOR_OSX |
| 27 | +#define EOS_PLATFORM_OSX_INEDITOR |
25 | 28 |
|
26 | 29 | #elif UNITY_EDITOR_LINUX || UNITY_STANDALONE_LINUX |
27 | | - #define EOS_PLATFORM_LINUX |
| 30 | +#define EOS_PLATFORM_LINUX |
28 | 31 |
|
29 | 32 | #elif UNITY_PS4 |
30 | | - #define EOS_PLATFORM_PS4 |
| 33 | +#define EOS_PLATFORM_PS4 |
31 | 34 |
|
32 | 35 | #elif UNITY_XBOXONE |
33 | | - #define EOS_PLATFORM_XBOXONE |
| 36 | +#define EOS_PLATFORM_XBOXONE |
34 | 37 |
|
35 | 38 | #elif UNITY_SWITCH |
36 | | - #define EOS_PLATFORM_SWITCH |
| 39 | +#define EOS_PLATFORM_SWITCH |
37 | 40 |
|
38 | 41 | #elif UNITY_IOS || __IOS__ |
39 | | - #define EOS_PLATFORM_IOS |
| 42 | +#define EOS_PLATFORM_IOS |
40 | 43 |
|
41 | 44 | #elif UNITY_ANDROID || __ANDROID__ |
42 | | - #define EOS_PLATFORM_ANDROID |
| 45 | +#define EOS_PLATFORM_ANDROID |
43 | 46 |
|
44 | 47 | #endif |
45 | 48 |
|
46 | 49 | #if EOS_EDITOR |
47 | | - #define EOS_DYNAMIC_BINDINGS |
| 50 | +#define EOS_DYNAMIC_BINDINGS |
48 | 51 | #endif |
49 | 52 |
|
50 | 53 | #if EOS_DYNAMIC_BINDINGS |
51 | | - #if EOS_PLATFORM_WINDOWS_32 |
52 | | - #define EOS_DYNAMIC_BINDINGS_NAME_TYPE3 |
53 | | - #elif EOS_PLATFORM_OSX |
54 | | - #define EOS_DYNAMIC_BINDINGS_NAME_TYPE2 |
55 | | - #else |
56 | | - #define EOS_DYNAMIC_BINDINGS_NAME_TYPE1 |
57 | | - #endif |
| 54 | +#if EOS_PLATFORM_WINDOWS_32 |
| 55 | +#define EOS_DYNAMIC_BINDINGS_NAME_TYPE3 |
| 56 | +#elif EOS_PLATFORM_OSX |
| 57 | +#define EOS_DYNAMIC_BINDINGS_NAME_TYPE2 |
| 58 | +#else |
| 59 | +#define EOS_DYNAMIC_BINDINGS_NAME_TYPE1 |
| 60 | +#endif |
58 | 61 | #endif |
59 | 62 |
|
60 | 63 | using System; |
@@ -2141,9 +2144,11 @@ public static void Hook<TLibraryHandle>(TLibraryHandle libraryHandle, Func<TLibr |
2141 | 2144 | if (functionPointer == System.IntPtr.Zero) throw new DynamicBindingException(EOS_AntiCheatClient_RemoveNotifyPeerAuthStatusChangedName); |
2142 | 2145 | EOS_AntiCheatClient_RemoveNotifyPeerAuthStatusChanged = (EOS_AntiCheatClient_RemoveNotifyPeerAuthStatusChangedDelegate)Marshal.GetDelegateForFunctionPointer(functionPointer, typeof(EOS_AntiCheatClient_RemoveNotifyPeerAuthStatusChangedDelegate)); |
2143 | 2146 |
|
| 2147 | +#if EOS_PLATFORM_OSX_INEDITOR |
2144 | 2148 | functionPointer = getFunctionPointer(libraryHandle, EOS_AntiCheatClient_Reserved01Name); |
2145 | 2149 | if (functionPointer == System.IntPtr.Zero) throw new DynamicBindingException(EOS_AntiCheatClient_Reserved01Name); |
2146 | 2150 | EOS_AntiCheatClient_Reserved01 = (EOS_AntiCheatClient_Reserved01Delegate)Marshal.GetDelegateForFunctionPointer(functionPointer, typeof(EOS_AntiCheatClient_Reserved01Delegate)); |
| 2151 | +#endif |
2147 | 2152 |
|
2148 | 2153 | functionPointer = getFunctionPointer(libraryHandle, EOS_AntiCheatClient_UnprotectMessageName); |
2149 | 2154 | if (functionPointer == System.IntPtr.Zero) throw new DynamicBindingException(EOS_AntiCheatClient_UnprotectMessageName); |
@@ -4468,10 +4473,10 @@ public static void Hook<TLibraryHandle>(TLibraryHandle libraryHandle, Func<TLibr |
4468 | 4473 | #endif |
4469 | 4474 |
|
4470 | 4475 | #if EOS_DYNAMIC_BINDINGS |
4471 | | - /// <summary> |
4472 | | - /// Unhooks the dynamic SDK API bindings. EOS_DYNAMIC_BINDINGS or EOS_EDITOR must be set. |
4473 | | - /// </summary> |
4474 | | - public static void Unhook() |
| 4476 | + /// <summary> |
| 4477 | + /// Unhooks the dynamic SDK API bindings. EOS_DYNAMIC_BINDINGS or EOS_EDITOR must be set. |
| 4478 | + /// </summary> |
| 4479 | + public static void Unhook() |
4475 | 4480 | { |
4476 | 4481 | EOS_Achievements_AddNotifyAchievementsUnlocked = null; |
4477 | 4482 | EOS_Achievements_AddNotifyAchievementsUnlockedV2 = null; |
|
0 commit comments