private void CK_ShowMana_CheckedChanged(object sender, EventArgs e) { if (War.HWnd != IntPtr.Zero) { if (CK_ShowMana.Checked) { bool isOpen = false; if (File.Exists(War.Path + "\\" + "TempReplay.w3g")) { DialogResult result = MessageBox.Show("游戏中开启此选项可能会导致魔兽崩溃,如果只运行并未开始游戏可开启该功能,是否开启?", "提示", MessageBoxButtons.YesNo, MessageBoxIcon.Exclamation); if (result == DialogResult.Yes) { isOpen = true; } } else { isOpen = true; } if (isOpen) { bool isOk = DllInject.ManaStart("mana.dll", true); } } } }
private void CB_SkillNoCD_CheckedChanged(object sender, EventArgs e) { if (War.HWnd != IntPtr.Zero) { if (CB_SkillNoCD.Checked) { switch (War.Version) { case "1.20E": byte[] fileByte = WjeWar.Properties.Resources.NOCD120E; DllInject.inject(fileByte, War.ProcessName, War.Path, "NOCD_1.20e.dll"); break; case "1.24E": break; case "1.24B": fileByte = WjeWar.Properties.Resources.NOCD124B; DllInject.inject(fileByte, War.ProcessName, War.Path, "NOCD_1.24b.dll"); break; } } } }