Exemplo n.º 1
0
        public bool InstanceAlreadyRunning(string instanceName)
        {
            foreach (var process in Process.GetProcessesByName("Nox"))
            {
                DebugForm.Log("Opened Nox Instance: \n" + GetCommandLine(process));
                return(GetCommandLine(process).Contains(instanceName));
            }

            DebugForm.ErrorLog(instanceName + " is not running!");

            return(false);
        }