mirror of
https://github.com/hykilpikonna/AquaDX.git
synced 2026-08-20 00:04:34 -05:00
[F] Mp4 movie not work
This commit is contained in:
@@ -1,12 +1,14 @@
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using AquaMai.Config.Attributes;
|
||||
using AquaMai.Core.Attributes;
|
||||
using AquaMai.Core.Helpers;
|
||||
using CriMana;
|
||||
using HarmonyLib;
|
||||
using MAI2.Util;
|
||||
using Manager;
|
||||
using MelonLoader;
|
||||
using Monitor;
|
||||
using Monitor.Game;
|
||||
using UnityEngine;
|
||||
using UnityEngine.Video;
|
||||
@@ -162,6 +164,17 @@ public class MovieLoader
|
||||
}
|
||||
}
|
||||
|
||||
[HarmonyPrefix]
|
||||
[HarmonyPatch(typeof(GameMonitor), "SetMovieMaterial")]
|
||||
[EnableGameVersion(minVersion: 15500)]
|
||||
public static bool SetMovieMaterial(Material material, int ___monitorIndex)
|
||||
{
|
||||
# if DEBUG
|
||||
MelonLogger.Msg("SetMovieMaterial");
|
||||
# endif
|
||||
return _videoPlayers[___monitorIndex] == null;
|
||||
}
|
||||
|
||||
[HarmonyPostfix]
|
||||
[HarmonyPatch(typeof(MovieController), "GetMovieHeight")]
|
||||
public static void GetMovieHeightPostfix(ref uint __result)
|
||||
|
||||
Reference in New Issue
Block a user