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

Commit

Permalink
improved menu
Browse files Browse the repository at this point in the history
  • Loading branch information
emiyl committed May 3, 2020
1 parent b3851dc commit 3106733
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 17 deletions.
2 changes: 1 addition & 1 deletion meta/meta.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<name>dumpling</name>
<coder>emiyl</coder>
<version>1.1</version>
<release_date>20200418200000</release_date>
<release_date>20200503200000</release_date>
<short_description>Simple Cemu File Dumper</short_description>
<long_description>Dumpling is a simple Wii U file dumper, developed with the intent of making Cemu set-up faster and easier.</long_description>
</app>
29 changes: 15 additions & 14 deletions src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ char **usb_stored_folders = NULL;

int dumpPart[4] = {1,0,0,0};

const char head_string[50] = "-- dumpling v1.1 pre-release by emiyl --";
const char head_string[50] = "-- dumpling v1.1 by emiyl --";

int select_menu() {
InitOSFunctionPointers();
Expand Down Expand Up @@ -381,7 +381,6 @@ int select_menu() {
};

int selectedItem = 0;
dumpPart[0] = 1;

while(1)
{
Expand Down Expand Up @@ -426,7 +425,7 @@ int select_menu() {
console_print_pos(4, 4 + i, " %s", selection_text[i]);
}

console_print_pos(0, 16, "Press X to return.");
console_print_pos(0, 16, "Press B to return.");

// Flip buffers
OSScreenFlipBuffersEx(0);
Expand Down Expand Up @@ -456,7 +455,7 @@ int select_menu() {
usleep(150000);
}

if(isPressed(VPAD_BUTTON_X) || isHeld(VPAD_BUTTON_X))
if(isPressed(VPAD_BUTTON_B) || isHeld(VPAD_BUTTON_B))
return 0;


Expand Down Expand Up @@ -548,9 +547,9 @@ int titles_menu(int dump_source, int dump_target) {
mlc_meta_names[mlc_folder_string_count - 1] = single_string;
}
closedir (dir);
mlc_page_count = (mlc_folder_string_count / 8);
if ((mlc_folder_string_count % 8) > 0)
mlc_page_count++;
mlc_page_count = (mlc_folder_string_count / 8) + 1;
if (mlc_folder_string_count % 8 == 0)
mlc_page_count--;
} else {
perror ("");
console_printf(1, "MLC mounting failed");
Expand Down Expand Up @@ -656,9 +655,10 @@ int titles_menu(int dump_source, int dump_target) {
usb_meta_names[usb_folder_string_count - 1] = single_string;
}
closedir (dir);
usb_page_count = (usb_folder_string_count / 8);
if ((usb_folder_string_count % 8) > 0)
usb_page_count++;
usb_page_count = (usb_folder_string_count / 8) + 1;
if (usb_folder_string_count % 8 == 0)
usb_page_count--;
sleep(3);
} else {
perror ("");
mlc_only = 1;
Expand Down Expand Up @@ -736,14 +736,14 @@ int titles_menu(int dump_source, int dump_target) {
if(mcp_hook_fd < 0)
IOSUHAX_Close();

sleep(1);

while(1)
{
updatePad();

if (mlc_only)
dump_source = 0;

dumpPart[0] = 1;

// Page checks
if (page_number < 1)
Expand Down Expand Up @@ -953,6 +953,8 @@ int titles_menu(int dump_source, int dump_target) {
snprintf(dir, sizeof(dir), "saves/%s", ((dump_source) ? usb_meta_names[i] : mlc_meta_names[i]));
dumpFunc(selection_path, dir, 0, dump_source, dump_target, 1);
}
console_printf(1, "Queue finished.");
sleep(1);
}
initScreen = 1;
}
Expand Down Expand Up @@ -1122,8 +1124,6 @@ int Menu_Main(void)

if (mlc_only)
dump_source = 0;

dumpPart[0] = 1;

if(initScreen)
{
Expand Down Expand Up @@ -1225,6 +1225,7 @@ int Menu_Main(void)
if(isPressed(VPAD_BUTTON_X) || isHeld(VPAD_BUTTON_X))
{
usleep(150000);
console_printf(1, "Loading...");
titles_menu(dump_source, dump_target);
initScreen = 1;
usleep(150000);
Expand Down
Binary file modified wiiu/apps/dumpling/dumpling.elf
Binary file not shown.
4 changes: 2 additions & 2 deletions wiiu/apps/dumpling/meta.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
<app version="1">
<name>dumpling</name>
<coder>emiyl</coder>
<version>1.0</version>
<release_date>20200417200000</release_date>
<version>1.1</version>
<release_date>20200503200000</release_date>
<short_description>Simple Cemu File Dumper</short_description>
<long_description>Dumpling is a simple Wii U file dumper, developed with the intent of making Cemu set-up faster and easier.</long_description>
</app>

0 comments on commit 3106733

Please sign in to comment.