Skip to content

Commit 4d329cd

Browse files
committed
Update Bindings.cs
1 parent fe145b2 commit 4d329cd

File tree

1 file changed

+54
-23
lines changed
  • com.playeveryware.eos/Runtime/EOS_SDK/Generated

1 file changed

+54
-23
lines changed

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

Lines changed: 54 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,63 @@
11
// Copyright Epic Games, Inc. All Rights Reserved.
22
// This file is automatically generated. Changes to this file may be overwritten.
33

4-
#if UNITY_STANDALONE_WIN && !UNITY_64
5-
#define EOS_PLATFORM_WINDOWS_32
4+
#if DEBUG
5+
#define EOS_DEBUG
66
#endif
77

8-
#if UNITY_EDITOR_OSX || UNITY_STANDALONE_OSX
9-
#define EOS_PLATFORM_OSX
8+
#if UNITY_EDITOR
9+
#define EOS_EDITOR
1010
#endif
1111

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

16-
#if UNITY_EDITOR
17-
#define EOS_EDITOR
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
22+
23+
#elif UNITY_EDITOR_OSX || UNITY_STANDALONE_OSX
24+
#define EOS_PLATFORM_OSX
25+
26+
#elif UNITY_EDITOR_OSX
27+
#define EOS_PLATFORM_OSX_INEDITOR
28+
29+
#elif UNITY_EDITOR_LINUX || UNITY_STANDALONE_LINUX
30+
#define EOS_PLATFORM_LINUX
31+
32+
#elif UNITY_PS4
33+
#define EOS_PLATFORM_PS4
34+
35+
#elif UNITY_XBOXONE
36+
#define EOS_PLATFORM_XBOXONE
37+
38+
#elif UNITY_SWITCH
39+
#define EOS_PLATFORM_SWITCH
40+
41+
#elif UNITY_IOS || __IOS__
42+
#define EOS_PLATFORM_IOS
43+
44+
#elif UNITY_ANDROID || __ANDROID__
45+
#define EOS_PLATFORM_ANDROID
46+
1847
#endif
1948

2049
#if EOS_EDITOR
21-
#define EOS_DYNAMIC_BINDINGS
50+
#define EOS_DYNAMIC_BINDINGS
2251
#endif
2352

2453
#if EOS_DYNAMIC_BINDINGS
25-
#if EOS_PLATFORM_WINDOWS_32
26-
#define EOS_DYNAMIC_BINDINGS_MANGLING_WINDOWS_32
27-
#elif EOS_PLATFORM_OSX || EOS_PLATFORM_IOS
28-
#define EOS_DYNAMIC_BINDINGS_MANGLING_APPLE
29-
#else
30-
#define EOS_DYNAMIC_BINDINGS_MANGLING_STANDARD
31-
#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
3261
#endif
3362

3463
using System;
@@ -38,7 +67,7 @@ namespace Epic.OnlineServices
3867
{
3968
public static partial class Bindings
4069
{
41-
#if EOS_DYNAMIC_BINDINGS_MANGLING_STANDARD
70+
#if EOS_DYNAMIC_BINDINGS_NAME_TYPE1
4271
private const string EOS_Achievements_AddNotifyAchievementsUnlockedName = "EOS_Achievements_AddNotifyAchievementsUnlocked";
4372
private const string EOS_Achievements_AddNotifyAchievementsUnlockedV2Name = "EOS_Achievements_AddNotifyAchievementsUnlockedV2";
4473
private const string EOS_Achievements_CopyAchievementDefinitionByAchievementIdName = "EOS_Achievements_CopyAchievementDefinitionByAchievementId";
@@ -665,7 +694,7 @@ public static partial class Bindings
665694
private const string EOS_UserInfo_QueryUserInfoByExternalAccountName = "EOS_UserInfo_QueryUserInfoByExternalAccount";
666695
private const string EOS_UserInfo_ReleaseName = "EOS_UserInfo_Release";
667696
#endif
668-
#if EOS_DYNAMIC_BINDINGS_MANGLING_APPLE
697+
#if EOS_DYNAMIC_BINDINGS_NAME_TYPE2
669698
private const string EOS_Achievements_AddNotifyAchievementsUnlockedName = "_EOS_Achievements_AddNotifyAchievementsUnlocked";
670699
private const string EOS_Achievements_AddNotifyAchievementsUnlockedV2Name = "_EOS_Achievements_AddNotifyAchievementsUnlockedV2";
671700
private const string EOS_Achievements_CopyAchievementDefinitionByAchievementIdName = "_EOS_Achievements_CopyAchievementDefinitionByAchievementId";
@@ -1292,7 +1321,7 @@ public static partial class Bindings
12921321
private const string EOS_UserInfo_QueryUserInfoByExternalAccountName = "_EOS_UserInfo_QueryUserInfoByExternalAccount";
12931322
private const string EOS_UserInfo_ReleaseName = "_EOS_UserInfo_Release";
12941323
#endif
1295-
#if EOS_DYNAMIC_BINDINGS_MANGLING_WINDOWS_32
1324+
#if EOS_DYNAMIC_BINDINGS_NAME_TYPE3
12961325
private const string EOS_Achievements_AddNotifyAchievementsUnlockedName = "_EOS_Achievements_AddNotifyAchievementsUnlocked@16";
12971326
private const string EOS_Achievements_AddNotifyAchievementsUnlockedV2Name = "_EOS_Achievements_AddNotifyAchievementsUnlockedV2@16";
12981327
private const string EOS_Achievements_CopyAchievementDefinitionByAchievementIdName = "_EOS_Achievements_CopyAchievementDefinitionByAchievementId@12";
@@ -2109,11 +2138,11 @@ public static void Hook<TLibraryHandle>(TLibraryHandle libraryHandle, Func<TLibr
21092138
functionPointer = getFunctionPointer(libraryHandle, EOS_AntiCheatClient_RemoveNotifyPeerAuthStatusChangedName);
21102139
if (functionPointer == IntPtr.Zero) throw new DynamicBindingException(EOS_AntiCheatClient_RemoveNotifyPeerAuthStatusChangedName);
21112140
EOS_AntiCheatClient_RemoveNotifyPeerAuthStatusChanged = (EOS_AntiCheatClient_RemoveNotifyPeerAuthStatusChangedDelegate)Marshal.GetDelegateForFunctionPointer(functionPointer, typeof(EOS_AntiCheatClient_RemoveNotifyPeerAuthStatusChangedDelegate));
2112-
2141+
#if EOS_DYNAMIC_BINDINGS_NAME_TYPE3 || EOS_DYNAMIC_BINDINGS_NAME_TYPE1
21132142
functionPointer = getFunctionPointer(libraryHandle, EOS_AntiCheatClient_Reserved01Name);
21142143
if (functionPointer == IntPtr.Zero) throw new DynamicBindingException(EOS_AntiCheatClient_Reserved01Name);
21152144
EOS_AntiCheatClient_Reserved01 = (EOS_AntiCheatClient_Reserved01Delegate)Marshal.GetDelegateForFunctionPointer(functionPointer, typeof(EOS_AntiCheatClient_Reserved01Delegate));
2116-
2145+
#endif
21172146
functionPointer = getFunctionPointer(libraryHandle, EOS_AntiCheatClient_UnprotectMessageName);
21182147
if (functionPointer == IntPtr.Zero) throw new DynamicBindingException(EOS_AntiCheatClient_UnprotectMessageName);
21192148
EOS_AntiCheatClient_UnprotectMessage = (EOS_AntiCheatClient_UnprotectMessageDelegate)Marshal.GetDelegateForFunctionPointer(functionPointer, typeof(EOS_AntiCheatClient_UnprotectMessageDelegate));
@@ -5062,7 +5091,8 @@ public static void Unhook()
50625091
EOS_UserInfo_QueryUserInfoByExternalAccount = null;
50635092
EOS_UserInfo_Release = null;
50645093
}
5065-
5094+
#endif
5095+
#if EOS_DYNAMIC_BINDINGS
50665096
[UnmanagedFunctionPointer(Common.LIBRARY_CALLING_CONVENTION)]
50675097
internal delegate ulong EOS_Achievements_AddNotifyAchievementsUnlockedDelegate(IntPtr handle, ref Achievements.AddNotifyAchievementsUnlockedOptionsInternal options, IntPtr clientData, Achievements.OnAchievementsUnlockedCallbackInternal notificationFn);
50685098
internal static EOS_Achievements_AddNotifyAchievementsUnlockedDelegate EOS_Achievements_AddNotifyAchievementsUnlocked;
@@ -7562,7 +7592,8 @@ public static void Unhook()
75627592
[UnmanagedFunctionPointer(Common.LIBRARY_CALLING_CONVENTION)]
75637593
internal delegate void EOS_UserInfo_ReleaseDelegate(IntPtr userInfo);
75647594
internal static EOS_UserInfo_ReleaseDelegate EOS_UserInfo_Release;
7565-
#else
7595+
#endif
7596+
#if !EOS_DYNAMIC_BINDINGS
75667597
[DllImport(Common.LIBRARY_NAME, EntryPoint="EOS_Achievements_AddNotifyAchievementsUnlocked", CallingConvention=Common.LIBRARY_CALLING_CONVENTION)]
75677598
internal static extern ulong EOS_Achievements_AddNotifyAchievementsUnlocked(IntPtr handle, ref Achievements.AddNotifyAchievementsUnlockedOptionsInternal options, IntPtr clientData, Achievements.OnAchievementsUnlockedCallbackInternal notificationFn);
75687599

0 commit comments

Comments
 (0)