Skip to content

Commit

Permalink
1.238 업데이트
Browse files Browse the repository at this point in the history
  • Loading branch information
killkimno committed Jan 2, 2022
1 parent ae4c100 commit 3d157a3
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion MORT/Form1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -863,8 +863,10 @@ private void CheckMortVersion(String content)
{
string versionKey = "@MORT_VERSION ";
string minorKey = "@MORT_MINOR_VERSION ";
string bitUpdateKey = "@MORT_64_BIT_MESSSAGE ";
string newVersionString = "";
string minorVersionString = "";
string bitMessageString = "";
string downloadPage = "";

if (IsDevVersion)
Expand All @@ -877,6 +879,9 @@ private void CheckMortVersion(String content)
downloadPage = Util.ParseString(content, versionKey, '{', '}');
minorVersionString = Util.ParseString(content, minorKey, '[', ']');

//1.230까지만 쓴다
bitMessageString = Util.ParseString(content, bitUpdateKey, '[', ']');



UpdateType updateType = Util.GetUpdateType(nowVersion, newVersionString, minorVersionString);
Expand All @@ -892,8 +897,13 @@ private void CheckMortVersion(String content)
nowVersionString = nowVersionString.Insert(1, ".");
newVersionString = newVersionString.Insert(1, ".");

if(string.IsNullOrEmpty(bitMessageString))
{
bitMessageString = "새로운 버전을 확인했습니다.\r\n업데이트 하시겠습니까?\r\n\r\n다운로드 페이지로 이동합니다";
}

string checkMessageSubtitle = "(주요 버전 업데이트 " + nowVersionString + " -> " + newVersionString + ")";
if (DialogResult.OK == MessageBox.Show("새로운 버전을 확인했습니다.\r\n업데이트 하시겠습니까?\r\n\r\n다운로드 페이지로 이동합니다", checkMessageSubtitle, MessageBoxButtons.OKCancel))
if (DialogResult.OK == MessageBox.Show(bitMessageString, checkMessageSubtitle, MessageBoxButtons.OKCancel))
{
Logo.SetTopmost(false);
try
Expand Down

0 comments on commit 3d157a3

Please sign in to comment.