Skip to content

Commit ceca73b

Browse files
committed
Inventory menu fix
Fixed the Inventory menu breaking when pressing up on the first option or down on the last option when viewing items past the first 20.
1 parent 90a6492 commit ceca73b

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

ttyd-tools/rel/include/menufunctions.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ bool checkForDPADInput();
6868
uint32_t checkButtonSingleFrame();
6969
// void correctPageSingleColumn(uint32_t button, uint8_t &currentPage)
7070
void default_DPAD_Actions(uint32_t button);
71-
void adjustCheatsSubMenu(uint32_t button);
71+
void adjustMenuNoPageEdit(uint32_t button);
7272
void adjustCheatsManageFlagsMainMenu(uint32_t button);
7373
void adjustMenuSelectionInventory(uint32_t button);
7474
void adjustCheatClearAreaFlagSelection(uint32_t button);

ttyd-tools/rel/source/global.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
namespace mod {
88

9-
const char *VersionNumber = "v3.0.20";
9+
const char *VersionNumber = "v3.0.21";
1010

1111
const char *RootLines[] =
1212
{

ttyd-tools/rel/source/menu.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ void menuCheckButton()
161161
{
162162
case 0:
163163
{
164-
default_DPAD_Actions(CurrentButton);
164+
adjustMenuNoPageEdit(CurrentButton);
165165
break;
166166
}
167167
case DUPLICATE:
@@ -631,7 +631,7 @@ void menuCheckButton()
631631
{
632632
if (tempMenuSelectionStates == 0)
633633
{
634-
adjustCheatsSubMenu(CurrentButton);
634+
adjustMenuNoPageEdit(CurrentButton);
635635
}
636636
break;
637637
}
@@ -691,7 +691,7 @@ void menuCheckButton()
691691
case DPADDOWN:
692692
case DPADUP:
693693
{
694-
adjustCheatsSubMenu(CurrentButton);
694+
adjustMenuNoPageEdit(CurrentButton);
695695
break;
696696
}
697697
case A:
@@ -776,7 +776,7 @@ void menuCheckButton()
776776
{
777777
if (tempMenuSelectionStates == 0)
778778
{
779-
adjustCheatsSubMenu(CurrentButton);
779+
adjustMenuNoPageEdit(CurrentButton);
780780
}
781781
break;
782782
}
@@ -841,7 +841,7 @@ void menuCheckButton()
841841
case DPADDOWN:
842842
case DPADUP:
843843
{
844-
adjustCheatsSubMenu(CurrentButton);
844+
adjustMenuNoPageEdit(CurrentButton);
845845
break;
846846
}
847847
case A:
@@ -1092,7 +1092,7 @@ void menuCheckButton()
10921092
{
10931093
case 0:
10941094
{
1095-
adjustCheatsSubMenu(CurrentButton);
1095+
adjustMenuNoPageEdit(CurrentButton);
10961096
break;
10971097
}
10981098
case SELECT_AREA:

ttyd-tools/rel/source/menufunctions.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3346,7 +3346,7 @@ void default_DPAD_Actions(uint32_t button)
33463346
}
33473347
}*/
33483348

3349-
void adjustCheatsSubMenu(uint32_t button)
3349+
void adjustMenuNoPageEdit(uint32_t button)
33503350
{
33513351
uint32_t tempCurrentMenu = CurrentMenu;
33523352
uint32_t tempTotalMenuColumns = Menu[tempCurrentMenu].TotalMenuColumns;

0 commit comments

Comments
 (0)