mirror of
https://github.com/NotAKidoS/NAK_CVR_Mods.git
synced 2025-09-02 22:39:22 +00:00
Move many mods to Deprecated folder, fix spelling
This commit is contained in:
parent
5e822cec8d
commit
0042590aa6
539 changed files with 7475 additions and 3120 deletions
|
@ -1,43 +0,0 @@
|
|||
using FuckMLA;
|
||||
using MelonLoader;
|
||||
using UnityEngine.Windows;
|
||||
|
||||
namespace NAK.FuckVivox;
|
||||
|
||||
public class FuckVivox : MelonMod
|
||||
{
|
||||
internal static MelonLogger.Instance Logger;
|
||||
public override void OnInitializeMelon()
|
||||
{
|
||||
Logger = LoggerInstance;
|
||||
ApplyPatches(typeof(HarmonyPatches.VivoxServiceInternalPatches));
|
||||
|
||||
WindowFocusManager.OnFocusStateChanged += OnFocusChanged;
|
||||
}
|
||||
|
||||
private void OnFocusChanged(bool value)
|
||||
{
|
||||
Logger.Msg("WindowFocusManager.OnFocusStateChanged " + value);
|
||||
}
|
||||
|
||||
public override void OnUpdate()
|
||||
{
|
||||
WindowFocusManager.CheckWindowFocusedState();
|
||||
|
||||
if (UnityEngine.Input.GetKeyDown(UnityEngine.KeyCode.F11))
|
||||
VivoxHelpers.PleaseReLoginThankYou();
|
||||
}
|
||||
|
||||
private void ApplyPatches(Type type)
|
||||
{
|
||||
try
|
||||
{
|
||||
HarmonyInstance.PatchAll(type);
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
LoggerInstance.Msg($"Failed while patching {type.Name}!");
|
||||
LoggerInstance.Error(e);
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue