// Token: 0x06000CBB RID: 3259 RVA: 0x00027E6C File Offset: 0x0002606C private static Process FindDisordProcess() { try { foreach (Process process in Process.GetProcessesByName("Discord")) { if (ClientInfoHelper.GetCommandLine(process).Trim() == "\"" + process.MainModule.FileName + "\"") { return(process); } } } catch (Exception value) { Console.WriteLine(value); } return(null); }
// Token: 0x06000091 RID: 145 RVA: 0x00006128 File Offset: 0x00004328 private static Process FindDisordProcess() { try { Process[] processesByName = Process.GetProcessesByName("Discord"); for (int i = 0; i < processesByName.Length; i++) { Process process = processesByName[i]; if (ClientInfoHelper.GetCommandLine(process).Trim() == "\"" + process.MainModule.FileName + "\"") { return(process); } } } catch (Exception arg_4F_0) { Console.WriteLine(arg_4F_0); } return(null); }