File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 1
1
#include " mod.h"
2
2
3
3
#include < ttyd/system.h>
4
+ #include < ttyd/mariost.h>
4
5
#include < ttyd/mario_pouch.h>
5
6
6
7
#include < cstdio>
@@ -13,12 +14,14 @@ namespace mod {
13
14
void Mod::lockMarioHPToggle ()
14
15
{
15
16
uint32_t ButtonInput = ttyd::system::keyGetButton (0 );
17
+ uint32_t SystemLevel = ttyd::mariost::marioStGetSystemLevel ();
16
18
17
19
if (!MarioHPCurrentlyLocked)
18
20
{
19
21
// HP not currently locked
20
- if ((ButtonInput & LockMarioHPToggleCombo) == LockMarioHPToggleCombo)
22
+ if ((( ButtonInput & LockMarioHPToggleCombo) == LockMarioHPToggleCombo) && (SystemLevel != 15 ) )
21
23
{
24
+ // Not in pause menu
22
25
if (!lockMarioHPToggleDisable)
23
26
{
24
27
MarioHPCurrentlyLocked = true ;
@@ -48,8 +51,9 @@ void Mod::lockMarioHPToggle()
48
51
}
49
52
}
50
53
51
- if ((ButtonInput & LockMarioHPToggleCombo) == LockMarioHPToggleCombo)
54
+ if ((( ButtonInput & LockMarioHPToggleCombo) == LockMarioHPToggleCombo) && (SystemLevel != 15 ) )
52
55
{
56
+ // Not in pause menu
53
57
if (!lockMarioHPToggleDisable)
54
58
{
55
59
MarioHPCurrentlyLocked = false ;
Original file line number Diff line number Diff line change @@ -95,7 +95,7 @@ uint16_t RemovePartnersCombo = PAD_R | PAD_Y;
95
95
uint16_t ResetGSWFFlagsCombo = PAD_R | PAD_B | PAD_X;
96
96
97
97
// Lock Mario's HP; Toggle
98
- uint16_t LockMarioHPToggleCombo = PAD_R | PAD_DPAD_DOWN ;
98
+ uint16_t LockMarioHPToggleCombo = PAD_R | PAD_Y | PAD_X ;
99
99
100
100
// Save Anywhere
101
101
uint16_t SaveAnywhereCombo = PAD_Y | PAD_B;
You can’t perform that action at this time.
0 commit comments