Skip to content

Commit 384a883

Browse files
Update Bindings.cs
1 parent fc2c2bb commit 384a883

File tree

1 file changed

+32
-27
lines changed
  • com.playeveryware.eos/Runtime/EOS_SDK/Generated

1 file changed

+32
-27
lines changed

com.playeveryware.eos/Runtime/EOS_SDK/Generated/Bindings.cs

Lines changed: 32 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -2,59 +2,62 @@
22
// This file is automatically generated. Changes to this file may be overwritten.
33

44
#if DEBUG
5-
#define EOS_DEBUG
5+
#define EOS_DEBUG
66
#endif
77

88
#if UNITY_EDITOR
9-
#define EOS_EDITOR
9+
#define EOS_EDITOR
1010
#endif
1111

1212
#if UNITY_EDITOR || UNITY_STANDALONE || UNITY_PS4 || UNITY_XBOXONE || UNITY_SWITCH || UNITY_IOS || UNITY_ANDROID
13-
#define EOS_UNITY
13+
#define EOS_UNITY
1414
#endif
1515

1616
#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
2222

2323
#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
2528

2629
#elif UNITY_EDITOR_LINUX || UNITY_STANDALONE_LINUX
27-
#define EOS_PLATFORM_LINUX
30+
#define EOS_PLATFORM_LINUX
2831

2932
#elif UNITY_PS4
30-
#define EOS_PLATFORM_PS4
33+
#define EOS_PLATFORM_PS4
3134

3235
#elif UNITY_XBOXONE
33-
#define EOS_PLATFORM_XBOXONE
36+
#define EOS_PLATFORM_XBOXONE
3437

3538
#elif UNITY_SWITCH
36-
#define EOS_PLATFORM_SWITCH
39+
#define EOS_PLATFORM_SWITCH
3740

3841
#elif UNITY_IOS || __IOS__
39-
#define EOS_PLATFORM_IOS
42+
#define EOS_PLATFORM_IOS
4043

4144
#elif UNITY_ANDROID || __ANDROID__
42-
#define EOS_PLATFORM_ANDROID
45+
#define EOS_PLATFORM_ANDROID
4346

4447
#endif
4548

4649
#if EOS_EDITOR
47-
#define EOS_DYNAMIC_BINDINGS
50+
#define EOS_DYNAMIC_BINDINGS
4851
#endif
4952

5053
#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
5861
#endif
5962

6063
using System;
@@ -2141,9 +2144,11 @@ public static void Hook<TLibraryHandle>(TLibraryHandle libraryHandle, Func<TLibr
21412144
if (functionPointer == System.IntPtr.Zero) throw new DynamicBindingException(EOS_AntiCheatClient_RemoveNotifyPeerAuthStatusChangedName);
21422145
EOS_AntiCheatClient_RemoveNotifyPeerAuthStatusChanged = (EOS_AntiCheatClient_RemoveNotifyPeerAuthStatusChangedDelegate)Marshal.GetDelegateForFunctionPointer(functionPointer, typeof(EOS_AntiCheatClient_RemoveNotifyPeerAuthStatusChangedDelegate));
21432146

2147+
#if EOS_PLATFORM_OSX_INEDITOR
21442148
functionPointer = getFunctionPointer(libraryHandle, EOS_AntiCheatClient_Reserved01Name);
21452149
if (functionPointer == System.IntPtr.Zero) throw new DynamicBindingException(EOS_AntiCheatClient_Reserved01Name);
21462150
EOS_AntiCheatClient_Reserved01 = (EOS_AntiCheatClient_Reserved01Delegate)Marshal.GetDelegateForFunctionPointer(functionPointer, typeof(EOS_AntiCheatClient_Reserved01Delegate));
2151+
#endif
21472152

21482153
functionPointer = getFunctionPointer(libraryHandle, EOS_AntiCheatClient_UnprotectMessageName);
21492154
if (functionPointer == System.IntPtr.Zero) throw new DynamicBindingException(EOS_AntiCheatClient_UnprotectMessageName);
@@ -4468,10 +4473,10 @@ public static void Hook<TLibraryHandle>(TLibraryHandle libraryHandle, Func<TLibr
44684473
#endif
44694474

44704475
#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()
44754480
{
44764481
EOS_Achievements_AddNotifyAchievementsUnlocked = null;
44774482
EOS_Achievements_AddNotifyAchievementsUnlockedV2 = null;

0 commit comments

Comments
 (0)