[AASDefaultProfileFix] remove comment

This commit is contained in:
NotAKidoS 2024-06-10 14:35:45 -05:00
parent 564e50070a
commit 14ab184db7

View file

@ -12,13 +12,13 @@ public class AASDefaultProfileFix : MelonMod
{ {
HarmonyInstance.Patch( HarmonyInstance.Patch(
typeof(CVRAdvancedAvatarSettings).GetMethod(nameof(CVRAdvancedAvatarSettings.LoadProfile), typeof(CVRAdvancedAvatarSettings).GetMethod(nameof(CVRAdvancedAvatarSettings.LoadProfile),
BindingFlags.Public | BindingFlags.Instance), // earliest callback (why the fuck are you public) BindingFlags.Public | BindingFlags.Instance),
prefix: new HarmonyMethod(typeof(AASDefaultProfileFix).GetMethod(nameof(OnAttemptLoadAASProfile), prefix: new HarmonyMethod(typeof(AASDefaultProfileFix).GetMethod(nameof(OnAttemptLoadAASProfile),
BindingFlags.NonPublic | BindingFlags.Static)) BindingFlags.NonPublic | BindingFlags.Static))
); );
} }
// when default profile is selected the defaultProfileName string is empty // when default profile is selected the defaultProfileName string is emptydepends
// so it does not load/apply anything- we will fix by forcing LoadDefault when this is detected // so it does not load/apply anything- we will fix by forcing LoadDefault when this is detected
private static bool OnAttemptLoadAASProfile(string profileName, AvatarAnimatorManager animatorManager, private static bool OnAttemptLoadAASProfile(string profileName, AvatarAnimatorManager animatorManager,
ref CVRAdvancedAvatarSettings __instance) ref CVRAdvancedAvatarSettings __instance)