1
0
mirror of https://github.com/soarqin/DSP_Mods.git synced 2025-12-08 22:13:30 +08:00

work in progress: MechaDronesTweaks

This commit is contained in:
2023-02-09 21:39:36 +08:00
parent 4e3c624faa
commit 565de9995a
6 changed files with 101 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
using System;
using BepInEx;
using HarmonyLib;
namespace MechaDronesTweaks;
[BepInPlugin(PluginInfo.PLUGIN_GUID, PluginInfo.PLUGIN_NAME, PluginInfo.PLUGIN_VERSION)]
[BepInDependency(FastDronesRemover.FastDronesGuid, BepInDependency.DependencyFlags.SoftDependency)]
public class MechaDronesTweaksPlugin : BaseUnityPlugin
{
public MechaDronesTweaksPlugin()
{
var harmony = new Harmony(PluginInfo.PLUGIN_GUID);
/* Remove FastDrones MOD if loaded */
try {
if (FastDronesRemover.Run(harmony))
{
Logger.LogInfo("Unpatch FastDrones - OK");
}
}
catch (Exception e)
{
Logger.LogWarning($"Failed to unpatch FastDrones: {e}");
}
}
}