28 lines
730 B
C#
28 lines
730 B
C#
using SPTarkov.DI.Annotations;
|
|
using SPTarkov.Server.Core.DI;
|
|
|
|
namespace PersonalAuthMod;
|
|
|
|
[Injectable]
|
|
public class PersonalAuthMod(DatabaseManager dbManager) : IOnLoad
|
|
{
|
|
public static PersonalAuthMod? Instance { get; private set; }
|
|
public DatabaseManager DbManager => dbManager;
|
|
|
|
public Task OnLoad()
|
|
{
|
|
Instance = this;
|
|
|
|
// Initialize Database (Tables etc)
|
|
dbManager.Initialize();
|
|
|
|
// Enable Harmony patches
|
|
new HttpRouterHandleRoutePatch().Enable();
|
|
new LauncherCallbacksLoginPatch().Enable();
|
|
new LauncherCallbacksRegisterPatch().Enable();
|
|
new ProfileControllerGetMiniProfilesPatch().Enable();
|
|
|
|
return Task.CompletedTask;
|
|
}
|
|
}
|