From 29d351ba803dad6e75162d426e5a7b4daebe5ec2 Mon Sep 17 00:00:00 2001 From: GabyPCgeeK Date: Sat, 29 Apr 2017 16:19:51 -0400 Subject: [PATCH] remember position when going back to title list --- src/main.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/main.c b/src/main.c index f5b4b1d..e4e6721 100644 --- a/src/main.c +++ b/src/main.c @@ -17,6 +17,7 @@ u8 slot = 0; bool allusers = 0, common = 1; int menu = 0, mode = 0, task = 0, targ = 0; int cursor = 0, scroll = 0; +int cursorb = 0, scrollb = 0; int titleswiiu = 0, titlesvwii = 0; //just to be able to call async @@ -338,6 +339,8 @@ int Menu_Main(void) { } if (menu==1) { targ = cursor+scroll; + cursorb = cursor; + scrollb = scroll; if (titles[targ].highID==0 || titles[targ].lowID==0) continue; } if (menu==2) { @@ -368,6 +371,10 @@ int Menu_Main(void) { ucls(); menu--; cursor = scroll = 0; + if (menu==1) { + cursor = cursorb; + scroll = scrollb; + } } if (isPressed(VPAD_BUTTON_HOME)) break;