mirror of
https://github.com/NotAKidoS/NAK_CVR_Mods.git
synced 2025-09-02 14:29:25 +00:00
rename folder
This commit is contained in:
parent
ef01bd8597
commit
3b8e6b3c00
8 changed files with 25 additions and 24 deletions
|
@ -1,33 +0,0 @@
|
|||
using ABI_RC.Systems.Camera;
|
||||
using HarmonyLib;
|
||||
using NAK.Melons.PortableCameraAdditions.VisualMods;
|
||||
using UnityEngine;
|
||||
|
||||
namespace NAK.Melons.PortableCameraAdditions.HarmonyPatches;
|
||||
|
||||
[HarmonyPatch]
|
||||
internal class HarmonyPatches
|
||||
{
|
||||
[HarmonyPostfix]
|
||||
[HarmonyPatch(typeof(PortableCamera), "Start")]
|
||||
private static void Postfix_PortableCamera_Start(ref PortableCamera __instance)
|
||||
{
|
||||
//run mod.Setup() instead of registering full mod with icon
|
||||
AdditionalSettings mainMod = new AdditionalSettings();
|
||||
mainMod.Setup(__instance);
|
||||
}
|
||||
|
||||
[HarmonyPostfix]
|
||||
[HarmonyPatch(typeof(PortableCamera), "OnWorldLoaded")]
|
||||
private static void Postfix_PortableCamera_OnWorldLoaded(Camera worldCamera)
|
||||
{
|
||||
AdditionalSettings.Instance?.OnWorldLoaded(worldCamera);
|
||||
}
|
||||
|
||||
[HarmonyPostfix]
|
||||
[HarmonyPatch(typeof(PortableCamera), "UpdateOptionsDisplay")]
|
||||
private static void Postfix_PortableCamera_UpdateOptionsDisplay(ref bool ____showExpertSettings)
|
||||
{
|
||||
AdditionalSettings.Instance?.OnUpdateOptionsDisplay(____showExpertSettings);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue