Commit 6499d514 authored by piratesephiroth's avatar piratesephiroth
Browse files

Add option to open output folder after conversion

parent 4259c75a
...@@ -2184,8 +2184,9 @@ namespace TeconMoon_s_WiiVC_Injector ...@@ -2184,8 +2184,9 @@ namespace TeconMoon_s_WiiVC_Injector
BuildStatus.Text = "Encrypting contents into installable WUP Package..."; BuildStatus.Text = "Encrypting contents into installable WUP Package...";
BuildStatus.Refresh(); BuildStatus.Refresh();
Directory.SetCurrentDirectory(TempRootPath); Directory.SetCurrentDirectory(TempRootPath);
string outputPath = OutputFolderSelect.SelectedPath + "\\WUP-N-" + TitleIDText + "_" + PackedTitleIDLine.Text;
LauncherExeFile = TempToolsPath + "JAR\\NUSPacker.exe"; LauncherExeFile = TempToolsPath + "JAR\\NUSPacker.exe";
LauncherExeArgs = "-in BUILDDIR -out \"" + OutputFolderSelect.SelectedPath + "\\WUP-N-" + TitleIDText + "_" + PackedTitleIDLine.Text + "\" -encryptKeyWith " + WiiUCommonKey.Text; LauncherExeArgs = "-in BUILDDIR -out \"" + outputPath + "\" -encryptKeyWith " + WiiUCommonKey.Text;
LaunchProgram(); LaunchProgram();
BuildProgress.Value = 100; BuildProgress.Value = 100;
///////////////////////////////// /////////////////////////////////
...@@ -2201,16 +2202,22 @@ namespace TeconMoon_s_WiiVC_Injector ...@@ -2201,16 +2202,22 @@ namespace TeconMoon_s_WiiVC_Injector
//END //END
BuildStatus.Text = "Conversion complete..."; BuildStatus.Text = "Conversion complete...";
BuildStatus.Refresh(); BuildStatus.Refresh();
MessageBox.Show("Conversion Complete! Your packed game can be found here: " + OutputFolderSelect.SelectedPath +
"\\WUP-N-" + TitleIDText + "_" + PackedTitleIDLine.Text + DialogResult finalDialogResult = MessageBox.Show("Conversion Complete! Your packed game can be found here:\n" + outputPath + "\n\n" +
".\n\nInstall your title using WUP Installer GX2 with signature patches enabled (CBHC, Haxchi, etc)." + "Install your title using WUP Installer GX2 with signature patches enabled (CBHC, Haxchi, etc)." +
"Make sure you have signature patches enabled when launching your title.\n\n Click OK to continue..." "Make sure you have signature patches enabled when launching your title.\n\n" +
, PackedTitleLine1.Text + " Conversion Complete" "Open the output folder now?"
, MessageBoxButtons.OK , PackedTitleLine1.Text + "Conversion Complete"
, MessageBoxButtons.YesNo
, MessageBoxIcon.Information , MessageBoxIcon.Information
, MessageBoxDefaultButton.Button1 , MessageBoxDefaultButton.Button1
, (MessageBoxOptions)0x40000); , (MessageBoxOptions)0x40000);
if (finalDialogResult == DialogResult.Yes)
{
Process.Start(outputPath);
}
if (OGfilepath != null) { OpenGame.FileName = OGfilepath; } if (OGfilepath != null) { OpenGame.FileName = OGfilepath; }
BuildStatus.Text = ""; BuildStatus.Text = "";
BuildStatus.Refresh(); BuildStatus.Refresh();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment