Exemplo n.º 1
0
        public void StartSteamAccount(SteamAccount a)
        {
            var counter = 0;

            while (IsSteamRunning())
            {
                if (counter > 10)
                {
                    throw new Exception("Could not stop Steam");
                }
                KillSteam();
                counter++;
            }

            var p = new Process();

            p.StartInfo = new ProcessStartInfo(SteamPath, a.GetStartParameters());
            p.Start();
        }