Skip to content

Commit

Permalink
Move shutdown into wait function
Browse files Browse the repository at this point in the history
  • Loading branch information
BOLL7708 committed Feb 3, 2021
1 parent 1c52352 commit 86b0982
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion OpenVRStartup/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ private static void Worker()
{
RunScripts(PATH_STARTFOLDER);
if(WeHaveScripts(PATH_STOPFOLDER)) WaitForQuit();
OpenVR.System.AcknowledgeQuit_Exiting();
OpenVR.Shutdown();
RunScripts(PATH_STOPFOLDER);
shouldRun = false;
Expand Down Expand Up @@ -166,6 +165,7 @@ private static void WaitForQuit()
{
if ((EVREventType)e.eventType == EVREventType.VREvent_Quit)
{
OpenVR.System.AcknowledgeQuit_Exiting();
shouldRun = false;
}
}
Expand Down
2 changes: 1 addition & 1 deletion OpenVRStartup/Properties/Resources.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion OpenVRStartup/Properties/Resources.resx
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,6 @@
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<data name="Version" xml:space="preserve">
<value>v0.9</value>
<value>v0.10</value>
</data>
</root>

0 comments on commit 86b0982

Please sign in to comment.