浏览代码

Fix NPR Shader breaking

MPS patches the same method that NPR Shader patches and I guess this is
the best way to fix it.

Thanks to Guest4168 for having the same exact issue and bringing it up
to ghorsington who fixed the problem in UnityInjectorLoader.
habeebweeb 4 年之前
父节点
当前提交
69801fbf8b
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      COM3D2.MeidoPhotoStudio.Plugin/MeidoPhotoStudio/MeidoPhotoStudio.cs

+ 2 - 1
COM3D2.MeidoPhotoStudio.Plugin/MeidoPhotoStudio/MeidoPhotoStudio.cs

@@ -1,4 +1,4 @@
-using System;
+using System;
 using System.IO;
 using System.Collections;
 using System.Collections.Generic;
@@ -11,6 +11,7 @@ namespace COM3D2.MeidoPhotoStudio.Plugin
 {
     using Input = InputManager;
     [BepInPlugin(pluginGuid, pluginName, pluginVersion)]
+    [BepInDependency("org.bepinex.plugins.unityinjectorloader", BepInDependency.DependencyFlags.SoftDependency)]
     public class MeidoPhotoStudio : BaseUnityPlugin
     {
         private static readonly CameraMain mainCamera = GameMain.Instance.MainCamera;