2020-04-02 22:49:48 +00:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.IO;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace UWUVCI_AIO_WPF.Classes
|
|
|
|
|
{
|
|
|
|
|
class ToolCheck
|
|
|
|
|
{
|
2020-04-17 01:28:14 +00:00
|
|
|
|
static string FolderName = "bin\\Tools";
|
2020-04-28 23:40:54 +00:00
|
|
|
|
public static string[] ToolNames =
|
2020-04-02 22:49:48 +00:00
|
|
|
|
{
|
|
|
|
|
"CDecrypt.exe",
|
|
|
|
|
"CNUSPACKER.exe",
|
|
|
|
|
"N64Converter.exe",
|
|
|
|
|
"png2tga.exe",
|
|
|
|
|
"psb.exe",
|
|
|
|
|
"RetroInject.exe",
|
|
|
|
|
"tga_verify.exe",
|
|
|
|
|
"WiiUDownloader.exe",
|
2020-04-04 22:16:55 +00:00
|
|
|
|
"wiiurpxtool.exe",
|
2020-04-04 22:30:01 +00:00
|
|
|
|
"INICreator.exe",
|
|
|
|
|
"7za.exe",
|
2020-04-06 15:51:15 +00:00
|
|
|
|
"blank.ini",
|
|
|
|
|
"FreeImage.dll",
|
2020-04-07 03:55:44 +00:00
|
|
|
|
"BuildPcePkg.exe",
|
2020-04-07 21:21:38 +00:00
|
|
|
|
"BuildTurboCdPcePkg.exe",
|
2020-04-16 04:41:25 +00:00
|
|
|
|
"goomba.gba",
|
|
|
|
|
"nfs2iso2nfs.exe",
|
|
|
|
|
"nintendont.dol",
|
|
|
|
|
"nintendont_force.dol",
|
|
|
|
|
"GetExtTypePatcher.exe",
|
|
|
|
|
"wbfs_file.exe",
|
|
|
|
|
"wit.exe",
|
|
|
|
|
"cygwin1.dll",
|
|
|
|
|
"cygz.dll",
|
|
|
|
|
"cyggcc_s-1.dll",
|
|
|
|
|
"IKVM.zip",
|
|
|
|
|
"NintendontConfig.exe",
|
2020-04-17 01:28:14 +00:00
|
|
|
|
"BASE.zip",
|
|
|
|
|
"tga2png.exe",
|
|
|
|
|
"iconTex.tga",
|
2020-04-19 19:15:00 +00:00
|
|
|
|
"wii-vmc.exe",
|
2020-04-22 00:24:35 +00:00
|
|
|
|
"bootTvTex.png",
|
|
|
|
|
"ConvertToISO.exe",
|
|
|
|
|
"NKit.dll",
|
|
|
|
|
"SharpCompress.dll",
|
2020-04-25 06:40:38 +00:00
|
|
|
|
"NKit.dll.config",
|
|
|
|
|
"IKVMW.zip",
|
2020-04-28 23:40:54 +00:00
|
|
|
|
"SOX.zip",
|
|
|
|
|
"jpg2tga.exe",
|
2020-05-04 16:20:21 +00:00
|
|
|
|
"bmp2tga.exe",
|
|
|
|
|
"ConvertToNKit.exe"
|
2020-04-02 22:49:48 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
public static bool DoesToolsFolderExist()
|
|
|
|
|
{
|
|
|
|
|
if (Directory.Exists(FolderName))
|
|
|
|
|
{
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static List<MissingTool> CheckForMissingTools()
|
|
|
|
|
{
|
|
|
|
|
List<MissingTool> ret = new List<MissingTool>();
|
|
|
|
|
foreach(string s in ToolNames)
|
|
|
|
|
{
|
|
|
|
|
string path = $@"{FolderName}\{s}";
|
|
|
|
|
if (!DoesToolExist(path))
|
|
|
|
|
{
|
|
|
|
|
ret.Add(new MissingTool(s, path));
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return ret;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private static bool DoesToolExist(string path)
|
|
|
|
|
{
|
|
|
|
|
if (File.Exists(path))
|
|
|
|
|
{
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
class MissingTool
|
|
|
|
|
{
|
|
|
|
|
public string Name { get; set; }
|
|
|
|
|
public string Path { get; set; }
|
|
|
|
|
|
|
|
|
|
public MissingTool(string n, string p)
|
|
|
|
|
{
|
|
|
|
|
this.Name = n;
|
|
|
|
|
FileInfo f = new FileInfo(p);
|
|
|
|
|
this.Path = f.FullName;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|