|
传奇3重置版 1.45客户端逆向源码
- private static bool UpdatePatcher()
- {
- try
- {
- if (!File.Exists(".\\AutoPatcher.gz"))
- return false;
- Process[] processesByName1 = Process.GetProcessesByName("AutoPatcher");
- if ((uint) processesByName1.Length > 0U)
- {
- string str = Application.StartupPath + "\\AutoPatcher.exe";
- for (int index = 0; index < processesByName1.Length; ++index)
- {
- if (processesByName1[index].MainModule.FileName == str)
- processesByName1[index].Kill();
- }
- Stopwatch stopwatch = Stopwatch.StartNew();
- bool flag = true;
- Process[] processesByName2 = Process.GetProcessesByName("AutoPatcher");
- while (flag)
- {
- flag = false;
- for (int index = 0; index < processesByName2.Length; ++index)
- {
- if (processesByName2[index].MainModule.FileName == str)
- flag = true;
- }
- if (stopwatch.ElapsedMilliseconds > 3000L)
- {
- int num = (int) MessageBox.Show("Failed to close AutoPatcher during update.");
- return true;
- }
- }
- }
- if (File.Exists(".\\AutoPatcher.exe"))
- File.Delete(".\\AutoPatcher.exe");
- File.Move(".\\AutoPatcher.gz", ".\\AutoPatcher.exe");
- Process.Start(".\\AutoPatcher.exe", "Auto");
- return true;
- }
- catch (Exception ex)
- {
- CMain.SaveError(ex.ToString());
- throw;
- }
- }
复制代码
|
-
-
下载地址.txt
1009 Bytes, 下载次数: 0, 下载积分: 积分 -5
售价: 500 积分 [记录]
[购买]
上一篇:传奇EI3.0服务端插件源码,客户端插件+登陆器源码全套下一篇:God引擎源码编译教程,god网关编译教程说明
|