mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-06 01:00:16 +00:00
20 lines
479 B
C#
20 lines
479 B
C#
using HarmonyLib;
|
|
using QSB.Patches;
|
|
|
|
namespace QSB.SaveSync.Patches;
|
|
|
|
[HarmonyPatch(typeof(ProfileManagerUpdater))]
|
|
public class ProfileManagerUpdaterPatches : QSBPatch
|
|
{
|
|
public override QSBPatchTypes Type => QSBPatchTypes.OnModStart;
|
|
|
|
[HarmonyPrefix]
|
|
[HarmonyPatch(nameof(ProfileManagerUpdater.Start))]
|
|
public static bool Start(ProfileManagerUpdater __instance)
|
|
{
|
|
__instance._profileManager = QSBCore.ProfileManager;
|
|
__instance.enabled = true;
|
|
return false;
|
|
}
|
|
}
|