Repository navigation
Expand file tree
/
Copy pathProgram.cs
More file actions
57 lines (53 loc) · 1.9 KB
/
Copy pathProgram.cs
File metadata and controls
57 lines (53 loc) · 1.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
using System.Diagnostics;
namespace SteamVRChatRun
{
internal class Program
{
public static class Setup
{
public static string VRC, SVR;
public static string[] GamesList = {
VRC = "C:\\Program Files (x86)\\Steam\\steamapps\\common\\VRChat\\start_protected_game.exe",
SVR = "C:\\Program Files (x86)\\Steam\\steamapps\\common\\SteamVR\\bin\\win64\\vrdashboard.exe"
};
public class Games
{
public static void Start(string[] GameList, GameType type)
{
Process Process = new Process();
Process.StartInfo.FileName = GameList[(int)type];
}
public enum GameType : int
{
VRC = 1,
SVR = 2
}
public static bool IsOpen = false;
public static int clock = 15;
public static void RunClient()
{
if (IsOpen)
{
Start(GamesList, GameType.SVR);
while (clock > 0)
{
Console.WriteLine(clock--);
Thread.Sleep(1000); // Wait for 1 second
}
Start(GamesList, GameType.VRC);
while (clock > 0)
{
Console.WriteLine(clock--);
Thread.Sleep(1000); // Wait for 1 second
}
}
}
}
}
static void Main(string[] args)
{
Setup.Games.IsOpen = true;
Setup.Games.RunClient();
}
}
}