[PortableCameraAdditions] Fixes for 2023r171

This commit is contained in:
NotAKidoS 2023-07-29 00:22:58 -05:00
parent c4a7f51be3
commit b757ac39d7
4 changed files with 23 additions and 8 deletions

View file

@ -4,7 +4,6 @@ using UnityEngine;
namespace NAK.PortableCameraAdditions.HarmonyPatches; namespace NAK.PortableCameraAdditions.HarmonyPatches;
[HarmonyPatch]
internal class PortableCameraPatches internal class PortableCameraPatches
{ {
[HarmonyPostfix] [HarmonyPostfix]

View file

@ -6,6 +6,19 @@ public class PortableCameraAdditions : MelonMod
{ {
public override void OnInitializeMelon() public override void OnInitializeMelon()
{ {
//boobs ApplyPatches(typeof(HarmonyPatches.PortableCameraPatches));
}
private void ApplyPatches(Type type)
{
try
{
HarmonyInstance.PatchAll(type);
}
catch (Exception e)
{
LoggerInstance.Msg($"Failed while patching {type.Name}!");
LoggerInstance.Error(e);
}
} }
} }

View file

@ -20,10 +20,13 @@ using System.Reflection;
[assembly: MelonGame("Alpha Blend Interactive", "ChilloutVR")] [assembly: MelonGame("Alpha Blend Interactive", "ChilloutVR")]
[assembly: MelonPlatform(MelonPlatformAttribute.CompatiblePlatforms.WINDOWS_X64)] [assembly: MelonPlatform(MelonPlatformAttribute.CompatiblePlatforms.WINDOWS_X64)]
[assembly: MelonPlatformDomain(MelonPlatformDomainAttribute.CompatibleDomains.MONO)] [assembly: MelonPlatformDomain(MelonPlatformDomainAttribute.CompatibleDomains.MONO)]
[assembly: MelonColor(255, 255, 217, 106)]
[assembly: MelonAuthorColor(255, 158, 21, 32)]
[assembly: HarmonyDontPatchAll]
namespace NAK.PortableCameraAdditions.Properties; namespace NAK.PortableCameraAdditions.Properties;
internal static class AssemblyInfoParams internal static class AssemblyInfoParams
{ {
public const string Version = "1.0.2"; public const string Version = "1.0.3";
public const string Author = "NotAKidoS"; public const string Author = "NotAKidoS";
} }

View file

@ -1,8 +1,8 @@
{ {
"_id": 123, "_id": 123,
"name": "PortableCameraAdditions", "name": "PortableCameraAdditions",
"modversion": "1.0.2", "modversion": "1.0.3",
"gameversion": "2022r170p1", "gameversion": "2023r171",
"loaderversion": "0.6.1", "loaderversion": "0.6.1",
"modtype": "Mod", "modtype": "Mod",
"author": "NotAKidoS", "author": "NotAKidoS",
@ -18,8 +18,8 @@
"requirements": [ "requirements": [
"None" "None"
], ],
"downloadlink": "https://github.com/NotAKidOnSteam/NAK_CVR_Mods/releases/download/r3/PortableCameraAdditions.dll", "downloadlink": "https://github.com/NotAKidOnSteam/NAK_CVR_Mods/releases/download/r16/PortableCameraAdditions.dll",
"sourcelink": "https://github.com/NotAKidOnSteam/NAK_CVR_Mods/tree/main/PortableCameraAdditions/", "sourcelink": "https://github.com/NotAKidOnSteam/NAK_CVR_Mods/tree/main/PortableCameraAdditions/",
"changelog": "Added F11 bind to fullscreen Portable Camera on Desktop.", "changelog": "Fixes for 2023r171.",
"embedcolor": "9b59b6" "embedcolor": "#ffd96a"
} }