|
46 | 46 |
|
47 | 47 | namespace Epic.OnlineServices |
48 | 48 | { |
49 | | - // PEW: Start Modify |
50 | | - // The partial attribute (added by PlayEveryWare) is the least intrusive |
51 | | - // means by which the following class can be expanded to support additional |
52 | | - // platforms. By making the class partial, supplementary partial |
53 | | - // class definition files can be added to the codebase that will expand |
54 | | - // platform support. |
55 | | - public static partial class Config |
| 49 | + public static class Config |
56 | 50 | { |
57 | | - // This conditional (added by PlayEveryWare) is here (in conjunction with |
58 | | - // the class it is contained within being marked as "partial") so that |
59 | | - // other platforms can be supported by adding to this code-base another |
60 | | - // part of the partial class that sets the LibraryName differently |
61 | | - // depending on the presence of other scripting defines that indicate |
62 | | - // available functionality on other platforms. |
63 | | -#if EOS_PLATFORM_WINDOWS_32 || EOS_PLATFORM_WINDOWS_64 || EOS_PLATFORM_OSX || EOS_PLATFORM_LINUX || EOS_PLATFORM_IOS || EOS_PLATFORM_ANDROID |
64 | 51 | public const string LibraryName = |
65 | | -#if EOS_PLATFORM_WINDOWS_32 && EOS_UNITY |
| 52 | + #if EOS_PLATFORM_WINDOWS_32 && EOS_UNITY |
66 | 53 | "EOSSDK-Win32-Shipping" |
67 | | -#elif EOS_PLATFORM_WINDOWS_32 |
| 54 | + #elif EOS_PLATFORM_WINDOWS_32 |
68 | 55 | "EOSSDK-Win32-Shipping.dll" |
69 | 56 |
|
70 | | -#elif EOS_PLATFORM_WINDOWS_64 && EOS_UNITY |
| 57 | + #elif EOS_PLATFORM_WINDOWS_64 && EOS_UNITY |
71 | 58 | "EOSSDK-Win64-Shipping" |
72 | | -#elif EOS_PLATFORM_WINDOWS_64 |
| 59 | + #elif EOS_PLATFORM_WINDOWS_64 |
73 | 60 | "EOSSDK-Win64-Shipping.dll" |
74 | 61 |
|
75 | | -#elif EOS_PLATFORM_OSX && EOS_UNITY |
| 62 | + #elif EOS_PLATFORM_OSX && EOS_UNITY |
76 | 63 | "libEOSSDK-Mac-Shipping" |
77 | | -#elif EOS_PLATFORM_OSX |
| 64 | + #elif EOS_PLATFORM_OSX |
78 | 65 | "libEOSSDK-Mac-Shipping.dylib" |
79 | 66 |
|
80 | | -#elif EOS_PLATFORM_LINUX && EOS_UNITY |
| 67 | + #elif EOS_PLATFORM_LINUX && EOS_UNITY |
81 | 68 | "libEOSSDK-Linux-Shipping" |
82 | | -#elif EOS_PLATFORM_LINUX |
| 69 | + #elif EOS_PLATFORM_LINUX |
83 | 70 | "libEOSSDK-Linux-Shipping.so" |
84 | 71 |
|
85 | | -#elif EOS_PLATFORM_IOS && EOS_UNITY && EOS_EDITOR |
| 72 | + #elif EOS_PLATFORM_IOS && EOS_UNITY && EOS_EDITOR |
86 | 73 | "EOSSDK" |
87 | | -#elif EOS_PLATFORM_IOS |
| 74 | + #elif EOS_PLATFORM_IOS |
88 | 75 | "EOSSDK.framework/EOSSDK" |
89 | 76 |
|
90 | | -#elif EOS_PLATFORM_ANDROID |
| 77 | + #elif EOS_PLATFORM_ANDROID |
91 | 78 | "EOSSDK" |
92 | 79 |
|
93 | | -#else |
94 | | -#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. |
| 80 | + #else |
| 81 | + #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. |
95 | 82 | "EOSSDK-UnknownPlatform-Shipping" |
96 | 83 |
|
97 | | -#endif |
| 84 | + #endif |
98 | 85 | ; |
99 | | -#elif EXTERNAL_TO_UNITY |
100 | | -#if PLATFORM_64 |
101 | | - public const string LibraryName = "EOSSDK-Win64-Shipping.dll"; |
102 | | -#else |
103 | | - public const string LibraryName = "EOSSDK-Win32-Shipping.dll"; |
104 | | -#endif |
105 | | -#endif |
106 | | - // PEW: End modify |
107 | | - public const CallingConvention LibraryCallingConvention = |
| 86 | + |
| 87 | + public const CallingConvention LibraryCallingConvention = |
108 | 88 | #if EOS_PLATFORM_WINDOWS_32 |
109 | 89 | CallingConvention.StdCall |
110 | 90 | #else |
|
0 commit comments