private static void Main() { using (new Mutex(true, Constants._MutexName, out bool createdNew)) { Osu.Show(); if (createdNew) { // 업데이트 전의 파일 삭제 Task.Run(() => IO.FileEx.PostDel(Application.ExecutablePath + Constants._BakExt)); Osu.RunMessageServer(); Osu.ListenMessageAsync(); Osu.HookKeyboard(); Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Application.Run(new CanvasForm()); Osu.UnhookKeyboard(); } } }
private void Lyrics_Load(object sender, EventArgs e) { Notice(Osu.Listen(Osu_Signal) ? Constants._MutexName : "초기화 실패"); Osu.HookKeyboard(Osu_KeyDown); }