Skip to content

Commit

Permalink
Took over more features from D9
Browse files Browse the repository at this point in the history
  • Loading branch information
d0k3 committed Oct 21, 2016
1 parent 4a75095 commit 5c15888
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 3 deletions.
2 changes: 1 addition & 1 deletion source/common.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
#define BUFFER_MAX_SIZE ((u32) (1 * 1024 * 1024))

// info / log file name
#define VERSION_NAME "Hourglass9 v1.22"
#define VERSION_NAME "Hourglass9 v1.30"
#define LOG_FILE "Hourglass9.log"

// hacky handling of D9 game dir stuff
Expand Down
20 changes: 18 additions & 2 deletions source/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
#include "decryptor/nand.h"
#include "decryptor/nandfat.h"
#include "decryptor/game.h"
#include "decryptor/xorpad.h"
#include "decryptor/selftest.h"
#include "bottomlogo_bgr.h"

#define SUBMENU_START 1
Expand All @@ -17,14 +19,15 @@ MenuInfo menu[] =
{
{
#ifndef VERSION_NAME
"Hourglass9 Main Menu", 4,
"Hourglass9 Main Menu", 5,
#else
VERSION_NAME, 4,
VERSION_NAME, 5,
#endif
{
{ "SysNAND Backup/Restore...", NULL, SUBMENU_START + 0 },
{ "EmuNAND Backup/Restore...", NULL, SUBMENU_START + 1 },
{ "Gamecart Dumper...", NULL, SUBMENU_START + 2 },
{ "Miscellaneous...", NULL, SUBMENU_START + 3 },
{ "Validate NAND Dump", &ValidateNandDump, 0 }
}
},
Expand Down Expand Up @@ -57,6 +60,17 @@ MenuInfo menu[] =
{ "Dump Private Header", &DumpPrivateHeader, 0 }
}
},
{
"Miscellaneous Options", 6, // ID 3
{
{ "SysNAND title to CIA", &ConvertSdToCia, 0 },
{ "EmuNAND title to CIA", &ConvertSdToCia, N_EMUNAND },
{ "GBA VC Save Dump", &DumpGbaVcSave, 0 },
{ "GBA VC Save Inject", &InjectGbaVcSave, N_NANDWRITE },
{ "NCCH Padgen", &NcchPadgen, 0 },
{ "System Info", &SystemInfo, 0 }
}
},
{
NULL, 0, { { 0 } } // empty menu to signal end
}
Expand Down Expand Up @@ -125,6 +139,8 @@ u32 InitializeH9()
errorlevel = (errorlevel < 1) ? 1 : errorlevel;
if (LoadKeyFromFile(0x1B, 'X', NULL)) // NCCH Secure4 KeyX
errorlevel = (errorlevel < 1) ? 1 : errorlevel;
if (SetupAgbCmacKeyY0x24()) // AGBSAVE CMAC KeyY
errorlevel = (errorlevel < 1) ? 1 : errorlevel;
Debug("Finalizing Initialization...");
RemainingStorageSpace();
} else {
Expand Down

0 comments on commit 5c15888

Please sign in to comment.