mirror of
https://github.com/stuff-by-3-random-dudes/UWUVCI-AIO-WPF
synced 2024-11-10 05:34:13 +00:00
Changes that got stomped out
This commit is contained in:
parent
5836cc67c9
commit
940d7a0c88
2 changed files with 10 additions and 59 deletions
|
@ -1799,65 +1799,16 @@ namespace UWUVCI_AIO_WPF
|
|||
}
|
||||
mvm.Progress += 10;
|
||||
foreach (string sFile in Directory.GetFiles(Path.Combine(Properties.Settings.Default.BasePath, $"{b.Name.Replace(":", "")} [{b.Region.ToString()}]", "content"), "*.nfs"))
|
||||
{
|
||||
File.Delete(sFile);
|
||||
}
|
||||
/* File.Delete(Path.Combine(Properties.Settings.Default.BasePath, $"{b.Name.Replace(":", "")} [{b.Region.ToString()}]", "code", "fw.img"));
|
||||
|
||||
File.Delete(Path.Combine(Properties.Settings.Default.BasePath, $"{b.Name.Replace(":", "")} [{b.Region.ToString()}]", "code", "fw.tmd"));
|
||||
|
||||
if (Directory.Exists(Path.Combine(toolsPath, "IKVM"))) { Directory.Delete(Path.Combine(toolsPath, "IKVM"), true); }
|
||||
if (!mvm.debug)
|
||||
{
|
||||
zip.StartInfo.UseShellExecute = false;
|
||||
zip.StartInfo.CreateNoWindow = true;
|
||||
}
|
||||
|
||||
zip.StartInfo.FileName = Path.Combine(toolsPath, "7za.exe");
|
||||
zip.StartInfo.Arguments = $"x \"{Path.Combine(toolsPath, "IKVM.zip")}\" -o\"{Path.Combine(toolsPath, "IKVM")}\"";
|
||||
zip.Start();
|
||||
zip.WaitForExit();
|
||||
mvm.Progress += 10;
|
||||
string[] JNUSToolConfig = { "http://ccs.cdn.wup.shop.nintendo.net/ccs/download", Properties.Settings.Default.Ckey };
|
||||
string savedir = Directory.GetCurrentDirectory();
|
||||
File.WriteAllLines(Path.Combine(toolsPath, "IKVM", "config"), JNUSToolConfig);
|
||||
Directory.SetCurrentDirectory(Path.Combine(toolsPath, "IKVM"));
|
||||
zip.StartInfo.FileName = "JNUSTool.exe";
|
||||
zip.StartInfo.Arguments = $"{b.Tid} {key.Tkey} -file /code/fw.img";
|
||||
zip.Start();
|
||||
zip.WaitForExit();
|
||||
|
||||
zip.StartInfo.Arguments = $"{b.Tid} {key.Tkey} -file /code/fw.tmd";
|
||||
zip.Start();
|
||||
zip.WaitForExit();
|
||||
|
||||
Directory.SetCurrentDirectory(savedir);
|
||||
var directories = Directory.GetDirectories(Path.Combine(toolsPath, "IKVM"));
|
||||
string name = "";
|
||||
foreach (var s in directories)
|
||||
{
|
||||
if (s.Contains(b.Name))
|
||||
{
|
||||
var split = s.Split('\\');
|
||||
name = split[split.Length - 1];
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
File.Copy(Path.Combine(toolsPath, "IKVM", name, "code", "fw.img"), Path.Combine(Properties.Settings.Default.BasePath, $"{b.Name.Replace(":", "")} [{b.Region.ToString()}]", "code", "fw.img"));
|
||||
|
||||
File.Copy(Path.Combine(toolsPath, "IKVM", name, "code", "fw.tmd"), Path.Combine(Properties.Settings.Default.BasePath, $"{b.Name.Replace(":", "")} [{b.Region.ToString()}]", "code", "fw.tmd"));
|
||||
|
||||
Directory.Delete(Path.Combine(toolsPath, "IKVM"), true);*/
|
||||
mvm.Progress += 15;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
if (Directory.Exists(tempPath))
|
||||
Directory.Delete(tempPath, true);
|
||||
|
||||
|
||||
|
||||
if (Directory.Exists(tempPath)) Directory.Delete(tempPath, true);
|
||||
Directory.CreateDirectory(tempPath);
|
||||
using (Process download = new Process())
|
||||
{
|
||||
|
|
|
@ -24,12 +24,12 @@ namespace UWUVCI_AIO_WPF.UI.Frames
|
|||
/// </summary>
|
||||
public partial class SettingsFrame : Page, IDisposable
|
||||
{
|
||||
MainWindow parent;
|
||||
MainWindow parent;
|
||||
public SettingsFrame(MainWindow mw)
|
||||
{
|
||||
InitializeComponent();
|
||||
parent = mw;
|
||||
// spm.Content += "\nThis will most likely fix the Injection Process, if it's stuck before it shows Copy Base";
|
||||
// spm.Content += "\nThis will most likely fix the Injection Process, if it's stuck before it shows Copy Base";
|
||||
}
|
||||
public void Dispose()
|
||||
{
|
||||
|
@ -38,8 +38,8 @@ namespace UWUVCI_AIO_WPF.UI.Frames
|
|||
|
||||
private void Button_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
/* TitleKeys tk = new TitleKeys();
|
||||
tk.ShowDialog();*/
|
||||
/* TitleKeys tk = new TitleKeys();
|
||||
tk.ShowDialog();*/
|
||||
}
|
||||
|
||||
private void Button_Click_1(object sender, RoutedEventArgs e)
|
||||
|
@ -66,12 +66,12 @@ namespace UWUVCI_AIO_WPF.UI.Frames
|
|||
{
|
||||
Process.Start(@"bin\Tools\INICreator.exe");
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
private void Button_Click_5(object sender, RoutedEventArgs e)
|
||||
{
|
||||
Custom_Message cm = new Custom_Message("Credits", "UWUVCI AIO - NicoAICP, Morilli, ZestyTS\nBeta Testers/Contributors - wowjinxy, Danis, Adolfobenjaminv\n\n7za - Igor Pavlov\nBuildPcePkg & BuildTurboCDPcePkg - JohnnyGo\nCdecrypt - crediar\nCNUSPACKER - NicoAICP, Morilli\nINICreator - NicoAICP\nN64Converter - Morilli\npng2tga - Easy2Convert\ninject_gba_c (psb) - Morilli\nRetroInject_C - Morilli\ntga_verify - Morilli\nWiiUDownloader - Morilli\nwiiurpxtool - 0CHB0\nGoomba - FluBBa\nDarkFilter Removal N64 - MelonSpeedruns, ZestyTS\nNintendont SD Card Menu - TeconMoon\nwit - Wiimm\nGetExtTypePatcher - Fix94\nnfs2iso2nfs - sabykos, piratesephiroth, Fix94 and many more\nWii-VMC - wanikoko\nIcon/TV Bootimages - Flump, ZestyTS\nNKit - Nanook\nImage Creation Base - Phacox\nWiiGameLanguage Patcher - ReturnerS\nChangeAspectRatio - andot\nvWii Title Forwarder - Fix94");
|
||||
Custom_Message cm = new Custom_Message("Credits", "UWUVCI AIO - NicoAICP, Morilli, ZestyTS\nBeta Testers/Contributors - wowjinxy, Danis, Adolfobenjaminv\n\n7za - Igor Pavlov\nBuildPcePkg & BuildTurboCDPcePkg - JohnnyGo\nCdecrypt - crediar\nCNUSPACKER - NicoAICP, Morilli\nINICreator - NicoAICP\nN64Converter - Morilli\npng2tga - Easy2Convert\ninject_gba_c (psb) - Morilli\nRetroInject_C - Morilli\ntga_verify - Morilli\nWiiUDownloader - Morilli\nwiiurpxtool - 0CHB0\nGoomba - FluBBa\nDarkFilter Removal N64 - MelonSpeedruns, ZestyTS\nNintendont SD Card Menu - TeconMoon\nwit - Wiimm\nGetExtTypePatcher - Fix94\nnfs2iso2nfs - sabykos, piratesephiroth, Fix94 and many more\nWii-VMC - wanikoko\nIcon/TV Bootimages - Flump, ZestyTS\nNKit - Nanook\nImage Creation Base - Phacox\nWiiGameLanguage Patcher - ReturnerS\nChangeAspectRatio - andot\nvWii Title Forwarder - Fix94");
|
||||
try
|
||||
{
|
||||
cm.Owner = (FindResource("mvm") as MainViewModel).mw;
|
||||
|
@ -86,7 +86,7 @@ namespace UWUVCI_AIO_WPF.UI.Frames
|
|||
private void Button_Click_6(object sender, RoutedEventArgs e)
|
||||
{
|
||||
MainViewModel mvm = FindResource("mvm") as MainViewModel;
|
||||
mvm.Update(true);
|
||||
mvm.UpdateAsync(true);
|
||||
}
|
||||
|
||||
private void Button_Click_7(object sender, RoutedEventArgs e)
|
||||
|
@ -108,7 +108,7 @@ namespace UWUVCI_AIO_WPF.UI.Frames
|
|||
{
|
||||
Process.Start(@"bin\Tools\NintendontConfig.exe");
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
private void Button_Click_10(object sender, RoutedEventArgs e)
|
||||
|
|
Loading…
Reference in a new issue