From b44863c63f29b78e0afc504240291de24ebed9de Mon Sep 17 00:00:00 2001 From: Sauceke Date: Mon, 24 Jun 2024 23:51:50 +0300 Subject: [PATCH] [OA] Support all current (and hopefully future) H scenes --- src/LoveMachine.OA/OurApartmentGame.cs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/LoveMachine.OA/OurApartmentGame.cs b/src/LoveMachine.OA/OurApartmentGame.cs index 23c5bee..ef1976a 100644 --- a/src/LoveMachine.OA/OurApartmentGame.cs +++ b/src/LoveMachine.OA/OurApartmentGame.cs @@ -9,9 +9,6 @@ namespace LoveMachine.OA; internal sealed class OurApartmentGame : GameAdapter { - private static readonly string[] layerNames = - { "Base SexSim", "From Behind SexSim", "Couch Missionary SexSim" }; - private Traverse isSex; private Animator naomiAnimator; private IEnumerable animationLayers; @@ -48,7 +45,7 @@ internal sealed class OurApartmentGame : GameAdapter protected override MethodInfo[] EndHMethods => new[] { - AccessTools.Method("Momoirosoft.Managers.SexSimControl, Assembly-CSharp:RunSexConclusion") + AccessTools.Method("Momoirosoft.Managers.SexSimControl, Assembly-CSharp:EndStreams") }; protected override Animator GetFemaleAnimator(int girlIndex) => naomiAnimator; @@ -75,6 +72,6 @@ protected override IEnumerator UntilReady(object sexSimControl) } isSex = Traverse.Create(sexSimControl).Property("_sexActive"); animationLayers = Enumerable.Range(0, naomiAnimator.layerCount) - .Where(i => layerNames.Contains(naomiAnimator.GetLayerName(i))); + .Where(i => naomiAnimator.GetLayerName(i).ToLower().EndsWith(" sexsim")); } } \ No newline at end of file