Skip to content

Commit

Permalink
Make sure to check player isn't in vr
Browse files Browse the repository at this point in the history
  • Loading branch information
gompocp committed Aug 8, 2021
1 parent 1c6aeae commit 474f32d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
### StandaloneThirdPerson v1.0.1
- Quick patch for vr

### StandaloneThirdPerson v1.0.0
- Initial Release

Expand Down
6 changes: 5 additions & 1 deletion StandaloneThirdPerson/Main.cs
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
using System;
using System.Collections;
using System.Linq;
using HarmonyLib;
using MelonLoader;
using UIExpansionKit.API;
using UnityEngine;
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
{
Expand All @@ -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());
Expand Down
2 changes: 1 addition & 1 deletion StandaloneThirdPerson/StandaloneThirdPerson.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<PropertyGroup>
<TargetFramework>net472</TargetFramework>
<VrcReferences>true</VrcReferences>
<Version>1.0.0.0</Version>
<Version>1.0.1.0</Version>
<LangVersion>9</LangVersion>
<CopyToMods>true</CopyToMods>
</PropertyGroup>
Expand Down

0 comments on commit 474f32d

Please sign in to comment.