Skip to content
This repository has been archived by the owner on Jul 30, 2019. It is now read-only.

Commit

Permalink
v1.1 - Overture
Browse files Browse the repository at this point in the history
  • Loading branch information
ThatNerdyPikachu committed Aug 13, 2018
1 parent 7a7f5b7 commit 2921345
Show file tree
Hide file tree
Showing 3 changed files with 75 additions and 15 deletions.
35 changes: 24 additions & 11 deletions LaunchpadNX/Main.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

53 changes: 50 additions & 3 deletions LaunchpadNX/Main.cs
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,8 @@ private void startButton_Click(object sender, EventArgs e)
// create "SD Root"
Directory.CreateDirectory("SD Root");

// install devkitARM
RunCommand("pacman -S devkitARM --noconfirm --needed");
// install switch dev tools
RunCommand("pacman -S switch-dev devkitARM --noconfirm --needed");

// Hekate
RunCommand("git clone https://github.com/CTCaer/hekate.git temp\\hekate && cd temp\\hekate && make -j");
Expand Down Expand Up @@ -239,7 +239,7 @@ private void startButton_Click(object sender, EventArgs e)
// checkpoint!
if (checkpointCheckbox.Checked)
{
// install freetype (shouldn't be needed due to hbmenu, but hey, you never know!)
// install freetype
RunCommand("pacman -S switch-freetype --noconfirm --needed");

// clone it
Expand Down Expand Up @@ -273,6 +273,53 @@ private void startButton_Click(object sender, EventArgs e)
hekateConfig.Add("kip1=cfw/sys-ftpd.kip");
}

// hbas
if (hbasCheckbox.Checked)
{
// install deps
RunCommand("pacman -S switch-curl switch-bzip2 switch-freetype switch-libjpeg-turbo switch-sdl2 " +
"switch-sdl2_gfx switch-sdl2_image switch-sdl2_ttf switch-zlib " +
"switch-libpng --noconfirm --needed");

// clone it
RunCommand("git clone https://github.com/vgmoose/appstorenx.git temp\\appstorenx --recursive");

// build it
RunCommand("cd temp\\appstorenx && make -j");

// create needed directory
if (!Directory.Exists("SD Root\\switch"))
{
Directory.CreateDirectory("SD Root\\switch");
}

// copy file
File.Copy("temp\\appstorenx\\appstore.nro", "SD Root\\switch\\appstore.nro");
}

// switchident
if (switchidentCheckbox.Checked)
{
// install deps
RunCommand("pacman -S switch-sdl2_ttf switch-sdl2_gfx switch-sdl2_image switch-libpng " +
"switch-libjpeg-turbo switch-sdl2 switch-freetype --noconfirm --needed");

// clone it
RunCommand("git clone https://github.com/joel16/SwitchIdent.git temp\\SwitchIdent");

// build it
RunCommand("cd temp\\SwitchIdent\\gui && make -j");

// create needed directory
if (!Directory.Exists("SD Root\\switch"))
{
Directory.CreateDirectory("SD Root\\switch");
}

// copy file
File.Copy("temp\\SwitchIdent\\gui\\gui.nro", "SD Root\\switch\\SwitchIdent.nro");
}

// hekate config (THANKS C#!!)
System.IO.File.WriteAllLines("SD Root\\hekate_ipl.ini", hekateConfig);

Expand Down
2 changes: 1 addition & 1 deletion LaunchpadNX/Main.resx
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<metadata name="idkCheckbox.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<metadata name="hbasCheckbox.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
</root>

0 comments on commit 2921345

Please sign in to comment.