1
0
mirror of https://github.com/soarqin/DSP_Mods.git synced 2025-12-10 10:43:27 +08:00

fix LogisticMiner, add config entries

This commit is contained in:
2022-08-23 03:03:22 +08:00
parent 4a88a6a8bf
commit 6778a9cc43
3 changed files with 135 additions and 49 deletions

View File

@@ -6,13 +6,15 @@ namespace DevShortcuts;
[BepInPlugin(PluginInfo.PLUGIN_GUID, PluginInfo.PLUGIN_NAME, PluginInfo.PLUGIN_VERSION)]
public class DevShortcuts : BaseUnityPlugin
{
private new static readonly BepInEx.Logging.ManualLogSource Logger = BepInEx.Logging.Logger.CreateLogSource(PluginInfo.PLUGIN_NAME);
private bool _cfgEnabled = true;
private void Awake()
{
_cfgEnabled = Config.Bind("General", "Enabled", _cfgEnabled, "enable/disable this plugin").Value;
if (!_cfgEnabled) return;
Logger.LogInfo($"Plugin {PluginInfo.PLUGIN_GUID} is loaded!");
}
private void Start()
{
Harmony.CreateAndPatchAll(typeof(DevShortcuts));
}