-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTechTechsSoundMod.cs
More file actions
35 lines (29 loc) · 1.08 KB
/
TechTechsSoundMod.cs
File metadata and controls
35 lines (29 loc) · 1.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
using BepInEx;
using BepInEx.Configuration;
using BepInEx.Logging;
using BepInEx.Unity.IL2CPP;
using HarmonyLib;
using MiraAPI;
using MiraAPI.PluginLoading;
using Reactor;
namespace techtech.TechTechsSoundMod;
[BepInAutoPlugin("techtech.techtechsoundsmod", "TechTechsSoundMod")]
[BepInProcess("Among Us.exe")]
[BepInDependency(ReactorPlugin.Id)]
[BepInDependency(MiraApiPlugin.Id)]
public partial class TechTechsSoundMod : BasePlugin, IMiraPlugin
{
public Harmony Harmony { get; } = new(Id);
public string OptionsTitleText => "TechTech's Sound Mod\nDynamically replace in-game sounds with your own audio files";
public ConfigFile GetConfigFile() => Config;
public static TechTechsSoundMod Instance { get; private set; } = null!;
public new ManualLogSource Log => base.Log;
public override void Load()
{
Instance = this;
SoundModManager.Initialize();
Harmony.PatchAll();
Log.LogInfo("[SoundMod] TechTech's Sound Mod loaded successfully.");
Log.LogInfo($"[SoundMod] Drop audio files into: {SoundModManager.SoundsFolder}");
}
}