Browse Source

Fixes for console builds

master
Nico de Poel 4 years ago
parent
commit
71f020f540
  1. 20
      Assets/Plugins/EpicOnlineServices/Source/Core/Config.cs
  2. 11
      Assets/Plugins/EpicOnlineServices/Source/Generated/Bindings.cs

20
Assets/Plugins/EpicOnlineServices/Source/Core/Config.cs

@ -8,7 +8,7 @@
#define EOS_EDITOR #define EOS_EDITOR
#endif #endif
#if UNITY_EDITOR || UNITY_STANDALONE || UNITY_PS4 || UNITY_XBOXONE || UNITY_SWITCH || UNITY_IOS || UNITY_ANDROID
#if UNITY_EDITOR || UNITY_STANDALONE || UNITY_PS4 || UNITY_XBOXONE || UNITY_SWITCH || UNITY_IOS || UNITY_ANDROID || UNITY_PS5 || UNITY_GAMECORE
#define EOS_UNITY #define EOS_UNITY
#endif #endif
@ -40,6 +40,15 @@
#elif UNITY_ANDROID || __ANDROID__ #elif UNITY_ANDROID || __ANDROID__
#define EOS_PLATFORM_ANDROID #define EOS_PLATFORM_ANDROID
#elif UNITY_PS5
#define EOS_PLATFORM_PS5
#elif UNITY_GAMECORE_XBOXONE
#define EOS_PLATFORM_XBOXONE_GDK
#elif UNITY_GAMECORE_SCARLETT
#define EOS_PLATFORM_XBOXSERIESX
#endif #endif
using System.Runtime.InteropServices; using System.Runtime.InteropServices;
@ -76,6 +85,15 @@ namespace Epic.OnlineServices
#elif EOS_PLATFORM_ANDROID #elif EOS_PLATFORM_ANDROID
"EOSSDK" "EOSSDK"
#elif EOS_PLATFORM_PS4
"EOSSDK-PS4-Shipping"
#elif EOS_PLATFORM_PS5
"EOSSDK-PS5-Shipping"
#elif EOS_PLATFORM_XBOXONE_GDK
"EOSSDK-XboxOneGDK-Shipping.dll"
#elif EOS_PLATFORM_XBOXSERIESX
"EOSSDK-XSX-Shipping.dll"
#else #else
#error Unable to determine the name of the EOSSDK library. Ensure you have set the correct EOS compilation symbol for the current platform, such as EOS_PLATFORM_WINDOWS_32 or EOS_PLATFORM_WINDOWS_64, so that the correct EOSSDK library can be targeted. #error Unable to determine the name of the EOSSDK library. Ensure you have set the correct EOS compilation symbol for the current platform, such as EOS_PLATFORM_WINDOWS_32 or EOS_PLATFORM_WINDOWS_64, so that the correct EOSSDK library can be targeted.

11
Assets/Plugins/EpicOnlineServices/Source/Generated/Bindings.cs

@ -9,7 +9,7 @@
#define EOS_EDITOR #define EOS_EDITOR
#endif #endif
#if UNITY_EDITOR || UNITY_STANDALONE || UNITY_PS4 || UNITY_XBOXONE || UNITY_SWITCH || UNITY_IOS || UNITY_ANDROID
#if UNITY_EDITOR || UNITY_STANDALONE || UNITY_PS4 || UNITY_XBOXONE || UNITY_SWITCH || UNITY_IOS || UNITY_ANDROID || UNITY_PS5 || UNITY_GAMECORE
#define EOS_UNITY #define EOS_UNITY
#endif #endif
@ -40,6 +40,15 @@
#elif UNITY_ANDROID || __ANDROID__ #elif UNITY_ANDROID || __ANDROID__
#define EOS_PLATFORM_ANDROID #define EOS_PLATFORM_ANDROID
#elif UNITY_PS5
#define EOS_PLATFORM_PS5
#elif UNITY_GAMECORE_XBOXONE
#define EOS_PLATFORM_XBOXONE_GDK
#elif UNITY_GAMECORE_SCARLETT
#define EOS_PLATFORM_XBOXSERIESX
#endif #endif

Loading…
Cancel
Save