internal static async void Rework(string[] args) { string LastInstallPath = Path.GetDirectoryName(Warcraft3Info.Process.MainModule.FileName); Settings.InstallPath = LastInstallPath; string[] procArgs = GetArguments(Warcraft3Info.ID); Warcraft3Info.Close(); await Task.Delay(2000); int windowState = 1; if (procArgs.Length != 0) { switch (procArgs[0].ToLower()) { case "-windows": windowState = 0; break; case "-nativefullscr": windowState = 2; break; } } await GameModule.StartWarcraft3(LastInstallPath, windowState); }
internal static void ProgramExit(string[] args) { //SendMsg(true, new string[] { "프로그램을 종료합니다." }); Warcraft3Info.Close(); //ProgramShutDown(); }