diff --git a/CHANGELOG.md b/CHANGELOG.md index 9e2fecf..d1d7ccd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +### StandaloneThirdPerson v1.0.1 +- Quick patch for vr + ### StandaloneThirdPerson v1.0.0 - Initial Release diff --git a/StandaloneThirdPerson/Main.cs b/StandaloneThirdPerson/Main.cs index c02ad3f..6eb1eec 100644 --- a/StandaloneThirdPerson/Main.cs +++ b/StandaloneThirdPerson/Main.cs @@ -1,5 +1,6 @@ using System; using System.Collections; +using System.Linq; using HarmonyLib; using MelonLoader; using UIExpansionKit.API; @@ -7,7 +8,7 @@ using Main = StandaloneThirdPerson.Main; [assembly: MelonGame("VRChat", "VRChat")] -[assembly: MelonInfo(typeof(Main), "StandaloneThirdPerson", "1.0.0", "gompo", "https://github.com/gompocp/VRChatMods/releases/")] +[assembly: MelonInfo(typeof(Main), "StandaloneThirdPerson", "1.0.1", "gompo", "https://github.com/gompocp/VRChatMods/releases/")] namespace StandaloneThirdPerson { @@ -17,6 +18,9 @@ internal partial class Main : MelonMod public override void OnApplicationStart() { + //Credits to Psychloor https://github.com/Psychloor/PlayerRotater/blob/master/PlayerRotater/ModMain.cs#L40 + if (Environment.GetCommandLineArgs() + .All(args => !args.Equals("--no-vr", StringComparison.OrdinalIgnoreCase))) return; ModSettings.RegisterSettings(); ModSettings.LoadSettings(); MelonCoroutines.Start(WaitForUIInit()); diff --git a/StandaloneThirdPerson/StandaloneThirdPerson.csproj b/StandaloneThirdPerson/StandaloneThirdPerson.csproj index a832cfa..2ffa89a 100644 --- a/StandaloneThirdPerson/StandaloneThirdPerson.csproj +++ b/StandaloneThirdPerson/StandaloneThirdPerson.csproj @@ -2,7 +2,7 @@ net472 true - 1.0.0.0 + 1.0.1.0 9 true