Skip to content

Commit

Permalink
KMS Minor Patch and patch file download
Browse files Browse the repository at this point in the history
  • Loading branch information
PirateIzzy committed Jun 12, 2024
1 parent 9773367 commit 7c87cbb
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion WzComparerR2/FrmPatcher.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
using System;
using System.Collections.Generic;
using System.Data;
using System.Diagnostics;
using System.Drawing;
using System.IO;
using System.Linq;
Expand Down Expand Up @@ -34,6 +35,7 @@ public FrmPatcher()
settings.Add(new PatcherSetting("KMST", "http://maplestory.dn.nexoncdn.co.kr/PatchT/{1:d5}/{0:d5}to{1:d5}.patch", 2));
settings.Add(new PatcherSetting("KMST-Minor", "http://maplestory.dn.nexoncdn.co.kr/PatchT/{0:d5}/Minor/{1:d2}to{2:d2}.patch", 3));
settings.Add(new PatcherSetting("KMS", "http://maplestory.dn.nexoncdn.co.kr/Patch/{1:d5}/{0:d5}to{1:d5}.patch", 2));
settings.Add(new PatcherSetting("KMS-Minor", "http://maplestory.dn.nexoncdn.co.kr/Patch/{0:d5}/Minor/{1:d2}to{2:d2}.patch", 3));
settings.Add(new PatcherSetting("JMS", "http://webdown2.nexon.co.jp/maple/patch/patchdir/{1:d5}/{0:d5}to{1:d5}.patch", 2));
settings.Add(new PatcherSetting("GMS", "http://download2.nexon.net/Game/MapleStory/patch/patchdir/{1:d5}/CustomPatch{0}to{1}.exe", 2));
settings.Add(new PatcherSetting("TMS", "http://tw.cdnpatch.maplestory.beanfun.com/maplestory/patch/patchdir/{1:d5}/{0:d5}to{1:d5}.patch", 2));
Expand Down Expand Up @@ -176,7 +178,23 @@ private void buttonXCheck_Click(object sender, EventArgs e)
item.GetFileLength();
if (item.FileLength > 0)
{
MessageBoxEx.Show(string.Format("Size: {0:N0} bytes. Last updated: {1:M-d-yyyy HH:mm:ss}", item.FileLength, item.LastModified));
switch (MessageBoxEx.Show(string.Format("Size: {0:N0} bytes. Last updated: {1:M-d-yyyy HH:mm:ss}\r\nDo you want to download the file now?", item.FileLength, item.LastModified), "Patcher", MessageBoxButtons.YesNo))
{
case DialogResult.Yes:
#if NET6_0_OR_GREATER
Process.Start(new ProcessStartInfo
{
UseShellExecute = true,
FileName = txtUrl.Text,
});
#else
Process.Start(txtUrl.Text);
#endif
return;

case DialogResult.No:
return;
}
}
else
{
Expand Down

0 comments on commit 7c87cbb

Please sign in to comment.