Skip to content

Commit

Permalink
Update patch
Browse files Browse the repository at this point in the history
  • Loading branch information
ArchangelWTF committed Jan 8, 2025
1 parent 1fc00b9 commit fd77a53
Showing 1 changed file with 18 additions and 18 deletions.
36 changes: 18 additions & 18 deletions Fika.Core/UI/Patches/TarkovApplication_method_18_Patch.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,23 +7,23 @@

namespace Fika.Core.UI.Patches
{
/// <summary>
/// The intention of this patch is to enable FikaNotificationManager after NotificationManagerClass and the NotifierView are initialized.
/// </summary>
public class TarkovApplication_method_18_Patch : ModulePatch
{
protected override MethodBase GetTargetMethod()
{
return typeof(TarkovApplication).GetMethod(nameof(TarkovApplication.method_18));
}
/// <summary>
/// The intention of this patch is to enable FikaNotificationManager after NotificationManagerClass and the NotifierView are initialized.
/// </summary>
public class TarkovApplication_method_18_Patch : ModulePatch
{
protected override MethodBase GetTargetMethod()
{
return typeof(TarkovApplication).GetMethod(nameof(TarkovApplication.method_16));
}

[PatchPostfix]
internal static void Postfix()
{
if (!FikaNotificationManager.Exists)
{
Singleton<PreloaderUI>.Instance.gameObject.AddComponent<FikaNotificationManager>();
}
}
}
[PatchPostfix]
internal static void Postfix()
{
if (!FikaNotificationManager.Exists)
{
Singleton<PreloaderUI>.Instance.gameObject.AddComponent<FikaNotificationManager>();
}
}
}
}

0 comments on commit fd77a53

Please sign in to comment.