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:
26
MechaDronesTweaks/MechaDronesTweaks.cs
Normal file
26
MechaDronesTweaks/MechaDronesTweaks.cs
Normal 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}");
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user