Browse Source

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 years ago
parent
commit
69801fbf8b

+ 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;