Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Donald Haase
WiiVC Injector
Commits
6499d514
Commit
6499d514
authored
May 22, 2021
by
piratesephiroth
Browse files
Add option to open output folder after conversion
parent
4259c75a
Changes
1
Hide whitespace changes
Inline
Side-by-side
TeconMoon's WiiVC Injector/Form1.cs
View file @
6499d514
...
...
@@ -2184,8 +2184,9 @@ namespace TeconMoon_s_WiiVC_Injector
BuildStatus
.
Text
=
"Encrypting contents into installable WUP Package..."
;
BuildStatus
.
Refresh
();
Directory
.
SetCurrentDirectory
(
TempRootPath
);
string
outputPath
=
OutputFolderSelect
.
SelectedPath
+
"\\WUP-N-"
+
TitleIDText
+
"_"
+
PackedTitleIDLine
.
Text
;
LauncherExeFile
=
TempToolsPath
+
"JAR\\NUSPacker.exe"
;
LauncherExeArgs
=
"-in BUILDDIR -out \""
+
O
utput
FolderSelect
.
SelectedPath
+
"\\WUP-N-"
+
TitleIDText
+
"_"
+
PackedTitleIDLine
.
Text
+
"\" -encryptKeyWith "
+
WiiUCommonKey
.
Text
;
LauncherExeArgs
=
"-in BUILDDIR -out \""
+
o
utput
Path
+
"\" -encryptKeyWith "
+
WiiUCommonKey
.
Text
;
LaunchProgram
();
BuildProgress
.
Value
=
100
;
/////////////////////////////////
...
...
@@ -2201,15 +2202,21 @@ namespace TeconMoon_s_WiiVC_Injector
//END
BuildStatus
.
Text
=
"Conversion complete..."
;
BuildStatus
.
Refresh
();
MessageBox
.
Show
(
"Conversion Complete! Your packed game can be found here: "
+
OutputFolderSelect
.
SelectedPath
+
"\\WUP-N-"
+
TitleIDText
+
"_"
+
PackedTitleIDLine
.
Text
+
".\n\nInstall 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..."
,
PackedTitleLine1
.
Text
+
" Conversion Complete"
,
MessageBoxButtons
.
OK
,
MessageBoxIcon
.
Information
,
MessageBoxDefaultButton
.
Button1
,
(
MessageBoxOptions
)
0x40000
);
DialogResult
finalDialogResult
=
MessageBox
.
Show
(
"Conversion Complete! Your packed game can be found here:\n"
+
outputPath
+
"\n\n"
+
"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"
+
"Open the output folder now?"
,
PackedTitleLine1
.
Text
+
"Conversion Complete"
,
MessageBoxButtons
.
YesNo
,
MessageBoxIcon
.
Information
,
MessageBoxDefaultButton
.
Button1
,
(
MessageBoxOptions
)
0x40000
);
if
(
finalDialogResult
==
DialogResult
.
Yes
)
{
Process
.
Start
(
outputPath
);
}
if
(
OGfilepath
!=
null
)
{
OpenGame
.
FileName
=
OGfilepath
;
}
BuildStatus
.
Text
=
""
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment