This commit is contained in:
chi
2025-05-26 17:19:36 +09:00
parent 8d0f0f8c8f
commit d6e7c118fb
40 changed files with 1550 additions and 3133 deletions

View File

@@ -8,6 +8,7 @@ using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.IO;
using AR;
using System.IO.Compression;
namespace Project.Dialog
@@ -22,12 +23,12 @@ namespace Project.Dialog
private void button1_Click(object sender, EventArgs e)
{
Util.RunProcess(@"c:\windows\system32\shutdown.exe", "-r -t 5");
UTIL.RunProcess(@"c:\windows\system32\shutdown.exe", "-r -t 5");
}
private void button2_Click(object sender, EventArgs e)
{
Util.RunProcess(@"c:\windows\system32\shutdown.exe", "-s -t 5");
UTIL.RunProcess(@"c:\windows\system32\shutdown.exe", "-s -t 5");
}
private void button3_Click(object sender, EventArgs e)
@@ -65,7 +66,7 @@ namespace Project.Dialog
private void arLabel9_Click(object sender, EventArgs e)
{
shutdown = true;
Util.SystemShutdown(10);
PUB.SystemShutdown(10);
this.Close();
}
@@ -73,7 +74,7 @@ namespace Project.Dialog
private void arLabel10_Click(object sender, EventArgs e)
{
shutdown = true;
Util.SystemReboot(10);
PUB.SystemReboot(10);
this.Close();
}
@@ -93,7 +94,7 @@ namespace Project.Dialog
if (prc.ProcessName.StartsWith("svchost")) continue;
sb.Append(" " + prc.ProcessName);
}
Util.MsgI(sb.ToString(),true);
UTIL.MsgI(sb.ToString(),true);
}
private void fSystem_Load(object sender, EventArgs e)
@@ -104,14 +105,14 @@ namespace Project.Dialog
private void arLabel3_Click(object sender, EventArgs e)
{
var file = System.IO.Path.Combine( Util.CurrentPath, "Emulator.exe");
var file = System.IO.Path.Combine(UTIL.CurrentPath, "Emulator.exe");
if(System.IO.File.Exists(file)==false)
{
Util.MsgE("에물레이터 실행 파일이 없습니다", true);
UTIL.MsgE("에물레이터 실행 파일이 없습니다", true);
return;
}
Util.RunProcess(file);
UTIL.RunProcess(file);
}
private void arLabel5_Click(object sender, EventArgs e)
@@ -122,7 +123,7 @@ namespace Project.Dialog
var file_exe = System.IO.Path.Combine(path.FullName, "amkor.exe");
if(System.IO.File.Exists(file_exe)==false)
{
Util.MsgE("실행파일 amkor.exe 가 없습니다.");
UTIL.MsgE("실행파일 amkor.exe 가 없습니다.");
return;
}
@@ -146,12 +147,12 @@ namespace Project.Dialog
// 임시 폴더 삭제
Directory.Delete(tempDir, true);
Util.MsgI("다음 패치 파일이 생성됨\n" + newfilename);
UTIL.MsgI("다음 패치 파일이 생성됨\n" + newfilename);
}
private void arLabel7_Click(object sender, EventArgs e)
{
Util.SystemReboot(5,true);
PUB.SystemReboot(5,true);
}
}
}

View File

@@ -9,6 +9,7 @@ using System.Threading.Tasks;
using System.Windows.Forms;
using System.IO;
using System.IO.Compression;
using AR;
namespace Project.Dialog
{
@@ -195,7 +196,7 @@ namespace Project.Dialog
if(System.IO.File.Exists(file))
{
//이 파일을 _patch 폴더에 압축해제한다.
var dir_path = new System.IO.DirectoryInfo(System.IO.Path.Combine(Util.CurrentPath,"_patch"));
var dir_path = new System.IO.DirectoryInfo(System.IO.Path.Combine(UTIL.CurrentPath ,"_patch"));
if (dir_path.Exists == true)
{
try
@@ -203,7 +204,7 @@ namespace Project.Dialog
dir_path.Delete(true);
} catch (Exception ex)
{
Util.MsgE(ex.Message);
UTIL.MsgE(ex.Message);
return;
}
}
@@ -224,7 +225,7 @@ namespace Project.Dialog
}
else
{
Util.MsgE("패치파일이 없습니다\n" + file);
UTIL.MsgE("패치파일이 없습니다\n" + file);
return;
}

View File

@@ -65,7 +65,7 @@ namespace Project.Dialog
//if (dev == null)
//{
// trackBar1.Enabled = false;
// Util.MsgE("사운드 장치가 없습니다", true);
// UTIL.MsgE("사운드 장치가 없습니다", true);
//}
//else
//{