mirror of
https://github.com/sp-tarkov/modules.git
synced 2025-02-13 09:50:43 -05:00
Co-authored-by: Dev <dev@dev.sp-tarkov.com> Co-authored-by: CWX <CWX@noreply.dev.sp-tarkov.com> Co-authored-by: DrakiaXYZ <drakiaxyz@noreply.dev.sp-tarkov.com> Co-authored-by: RaiRaiTheRaichu <rairaitheraichu@noreply.dev.sp-tarkov.com> Co-authored-by: CWX <cwx@noreply.dev.sp-tarkov.com> Co-authored-by: Kaeno <e> Reviewed-on: SPT-AKI/Modules#33
36 lines
1.0 KiB
C#
36 lines
1.0 KiB
C#
using System;
|
|
using Aki.Common;
|
|
using Aki.Core.Patches;
|
|
using BepInEx;
|
|
|
|
namespace Aki.Core
|
|
{
|
|
[BepInPlugin("com.spt-aki.core", "AKI.Core", AkiPluginInfo.PLUGIN_VERSION)]
|
|
class AkiCorePlugin : BaseUnityPlugin
|
|
{
|
|
public AkiCorePlugin()
|
|
{
|
|
Logger.LogInfo("Loading: Aki.Core");
|
|
|
|
try
|
|
{
|
|
new ConsistencySinglePatch().Enable();
|
|
new ConsistencyMultiPatch().Enable();
|
|
new BattlEyePatch().Enable();
|
|
new SslCertificatePatch().Enable();
|
|
new UnityWebRequestPatch().Enable();
|
|
new WebSocketPatch().Enable();
|
|
new TransportPrefixPatch().Enable();
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
Logger.LogError($"A PATCH IN {GetType().Name} FAILED. SUBSEQUENT PATCHES HAVE NOT LOADED");
|
|
Logger.LogError($"{GetType().Name}: {ex}");
|
|
throw;
|
|
}
|
|
|
|
Logger.LogInfo("Completed: Aki.Core");
|
|
}
|
|
}
|
|
}
|