1
0
Fork 0
mirror of https://github.com/DarkMatterCore/nxdumptool.git synced 2024-11-22 10:16:39 +00:00

Minor template tweaks + LegalInfo fix.

This commit is contained in:
Pablo Curiel 2020-10-10 06:10:50 -04:00
parent d1f0361725
commit 3e59d15bc4
7 changed files with 22 additions and 6 deletions

View file

@ -39,6 +39,10 @@ APP_TITLE := nxdumptool-rewrite
APP_AUTHOR := DarkMatterCore
APP_VERSION := ${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_MICRO}
ifneq ($(origin BUILD_TYPE),undefined)
APP_VERSION := ${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_MICRO}-${BUILD_TYPE}
endif
TARGET := ${APP_TITLE}
BUILD := build
SOURCES := source source/fatfs

View file

@ -3,7 +3,7 @@ cd "$(dirname "${BASH_SOURCE[0]}")"
tar_filename="nxdumptool-rewrite_poc_$(shell git rev-parse --short HEAD).tar.bz2"
rm -f $tar_filename
rm -f ./*.tar.bz2
rm -rf ./code_templates/tmp
mkdir ./code_templates/tmp
@ -23,7 +23,7 @@ for f in ./code_templates/*.c; do
{
make clean
make -j 12
make -j 12 BUILD_TYPE="$filename"
}
mkdir ./code_templates/tmp/$filename

View file

@ -284,8 +284,14 @@ int main(int argc, char *argv[])
printf("select a %s.", menu == 0 ? "system title to view its contents" : (menu == 1 ? "content" : "fs section"));
printf("\npress b to %s.\n\n", menu == 0 ? "exit" : "go back");
if (menu == 0) printf("title: %u / %u\n\n", selected_idx + 1, app_count);
if (menu == 0)
{
printf("title: %u / %u\n", selected_idx + 1, app_count);
printf("selected title: %016lX - %s\n\n", app_metadata[selected_idx]->title_id, app_metadata[selected_idx]->lang_entry.name);
}
if (menu >= 1) printf("selected title: %016lX - %s\n\n", app_metadata[title_idx]->title_id, app_metadata[title_idx]->lang_entry.name);
if (menu == 2) printf("selected content: %s (%s)\n\n", nca_id_str, titleGetNcmContentTypeName(cur_title_info->content_infos[nca_idx].content_type));
u32 max_val = (menu == 0 ? app_count : (menu == 1 ? cur_title_info->content_count : NCA_FS_HEADER_COUNT));
@ -366,7 +372,8 @@ int main(int argc, char *argv[])
if (error || menu >= 3)
{
utilsSleep(3);
consolePrint("press any button to continue\n");
utilsWaitForButtonPress(KEY_NONE);
menu--;
} else {
selected_idx = scroll = 0;

View file

@ -378,7 +378,8 @@ int main(int argc, char *argv[])
{
consoleClear();
printf("select an user application to dump its romfs.\nif an update is available, patch romfs data will be dumped instead.\ndata will be transferred via usb.\npress b to exit.\n\n");
printf("title: %u / %u\n\n", selected_idx + 1, app_count);
printf("title: %u / %u\n", selected_idx + 1, app_count);
printf("selected title: %016lX - %s\n\n", app_metadata[selected_idx]->title_id, app_metadata[selected_idx]->lang_entry.name);
for(u32 i = scroll; i < app_count; i++)
{

View file

@ -85,7 +85,8 @@ int main(int argc, char *argv[])
{
consoleClear();
printf("select an user application to generate a cnmt xml for.\npress b to exit.\n\n");
printf("title: %u / %u\n\n", selected_idx + 1, app_count);
printf("title: %u / %u\n", selected_idx + 1, app_count);
printf("selected title: %016lX - %s\n\n", app_metadata[selected_idx]->title_id, app_metadata[selected_idx]->lang_entry.name);
for(u32 i = scroll; i < app_count; i++)
{

View file

@ -78,6 +78,9 @@ bool legalInfoInitializeContext(LegalInfoContext *out, NcaContext *nca_ctx)
goto end;
}
/* Update NCA context pointer in output context. */
out->nca_ctx = nca_ctx;
success = true;
end: