Auto download modded parser

This commit is contained in:
Asval 2019-03-05 22:58:38 +01:00
parent 36863b7c7d
commit 9237289c3f
12 changed files with 16 additions and 5 deletions

Binary file not shown.

View File

@ -8,6 +8,7 @@ using System.Drawing.Imaging;
using System.Drawing.Text;
using System.IO;
using System.Linq;
using System.Net;
using System.Runtime.InteropServices;
using System.Windows.Forms;
@ -45,10 +46,16 @@ namespace FModel
}
AESKeyTextBox.Text = "0x" + File.ReadAllText("key.txt").ToUpper();
if (!Directory.Exists(docPath + "\\Generated Icons\\")) //Create Generated Icons Subfolder
Directory.CreateDirectory(docPath + "\\Generated Icons\\");
if (!Directory.Exists(docPath + "\\Extracted Sounds\\")) //Create Generated Icons Subfolder
Directory.CreateDirectory(docPath + "\\Extracted Sounds\\");
if (!File.Exists(docPath + "\\john-wick-parse-modded.exe"))
{
WebClient Client = new WebClient();
Client.DownloadFile("https://www53.zippyshare.com/d/m6LyNUXB/936989/john-wick-parse-modded.exe", docPath + "\\john-wick-parse-modded.exe");
AppendText("[FileNotFoundException] ", Color.Red);
AppendText("File ", Color.Black);
AppendText("john-wick-parse-modded.exe ", Color.SteelBlue);
AppendText("downloaded successfully", Color.Black, true);
}
ExtractButton.Enabled = false;
SaveImageButton.Enabled = false;
@ -252,6 +259,11 @@ namespace FModel
ItemRichTextBox.Text = "";
ItemIconPictureBox.Image = null;
if (!Directory.Exists(docPath + "\\Generated Icons\\")) //Create Generated Icons Subfolder
Directory.CreateDirectory(docPath + "\\Generated Icons\\");
if (!Directory.Exists(docPath + "\\Extracted Sounds\\")) //Create Generated Icons Subfolder
Directory.CreateDirectory(docPath + "\\Extracted Sounds\\");
int fontLength = Properties.Resources.BurbankBigCondensed_Bold.Length;
byte[] fontdata = Properties.Resources.BurbankBigCondensed_Bold;
System.IntPtr weirdData = Marshal.AllocCoTaskMem(fontLength);

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -1 +0,0 @@
AC7AF84B59C4BD4F916F7EFCB292B3A5897CFF7DD7A688AC8B3791A4EDF32E7B

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.