mirror of
https://github.com/hykilpikonna/AquaDX.git
synced 2026-08-21 16:54:26 -05:00
SetSpeed
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user