Skip to content
This repository has been archived by the owner on Aug 14, 2020. It is now read-only.

Commit

Permalink
made dumping directories better
Browse files Browse the repository at this point in the history
  • Loading branch information
emiyl committed Apr 11, 2020
1 parent f797496 commit dad68e6
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -141,14 +141,13 @@ int dump_func(const char *mount_path, int selectedItem, int fsaFd, int initScree
{
strcpy(targetPath, "dev:/");
char sdPath[255] = "sd:/dumpling";
if (selectedItem == 0) snprintf(sdPath, sizeof(sdPath), "sd:/dumpling/online_files%s", mount_path);
if (selectedItem == 1) snprintf(sdPath, sizeof(sdPath), "sd:/dumpling/friends_list%s", mount_path);
if (selectedItem == 2) snprintf(sdPath, sizeof(sdPath), "sd:/dumpling/games");
if (selectedItem == 3) snprintf(sdPath, sizeof(sdPath), "sd:/dumpling/updates");
if (selectedItem == 4) snprintf(sdPath, sizeof(sdPath), "sd:/dumpling/dlc");
if (selectedItem == 5) snprintf(sdPath, sizeof(sdPath), "sd:/dumpling/saves");
if (selectedItem == 6) snprintf(sdPath, sizeof(sdPath), "sd:/dumpling/nand");
//snprintf(sdPath, sizeof(sdPath), "sd:/dumpling%s", mount_path);
if (selectedItem == 0) snprintf(sdPath, sizeof(sdPath), "sd:/dumpling/online_files/%s", mount_path + 13);
if (selectedItem == 1) strcpy(sdPath, "sd:/dumpling/friends_list");
if (selectedItem == 2) strcpy(sdPath, "sd:/dumpling/games");
if (selectedItem == 3) strcpy(sdPath, "sd:/dumpling/updates");
if (selectedItem == 4) strcpy(sdPath, "sd:/dumpling/dlc");
if (selectedItem == 5) strcpy(sdPath, "sd:/dumpling/saves");
if (selectedItem == 6) strcpy(sdPath, "sd:/dumpling/nand");
DumpDir(targetPath, sdPath);

free(targetPath);
Expand Down Expand Up @@ -305,7 +304,7 @@ int Menu_Main(void)
OSScreenClearBufferEx(1, 0);


console_print_pos(0, 1, "-- Dumpling v0.1 by emiyl --");
console_print_pos(0, 1, "-- Dumpling v0.1.1 by emiyl --");
console_print_pos(0, 2, "Based on FT2SD by Dimok");

console_print_pos(0, 4, "Select what to dump to SD card and press A to start dump.");
Expand Down

0 comments on commit dad68e6

Please sign in to comment.