This commit is contained in:
Clansty
2024-12-02 10:57:35 +08:00
parent 67c37df379
commit 488d4b5f9a

View File

@@ -1,6 +1,7 @@
using System;
using System.IO;
using AquaMai.Config.Attributes;
using CriMana;
using HarmonyLib;
using MAI2.Util;
using Manager;
@@ -124,4 +125,15 @@ public class MovieLoader
}
}
}
[HarmonyPostfix]
[HarmonyPatch(typeof(Player), "SetSpeed")]
public static void SetSpeed(float speed)
{
foreach (var player in _videoPlayers)
{
if (player == null) return;
player.playbackSpeed = speed;
}
}
}