mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-05-31 20:44:31 -04:00
Playdead default sequence and validity check
This commit is contained in:
parent
a0b4212c92
commit
f033782d4b
5 changed files with 29 additions and 12 deletions
|
@ -393,6 +393,8 @@ SystemView::SystemView(
|
|||
this->status_view.set_title(new_view.title());
|
||||
};
|
||||
|
||||
// portapack::persistent_memory::set_playdead_sequence(0x8D1);
|
||||
|
||||
// Initial view
|
||||
if ((portapack::persistent_memory::playing_dead() == 0x5920C1DF) || // Enable code
|
||||
(portapack::persistent_memory::ui_config() & 16)) { // Login option
|
||||
|
@ -459,7 +461,7 @@ PlayDeadView::PlayDeadView(NavigationView& nav) {
|
|||
text_playdead3.hidden(true);
|
||||
|
||||
button_seq_entry.on_dir = [this](Button&, KeyEvent key){
|
||||
sequence = (sequence << 3) | static_cast<std::underlying_type<KeyEvent>::type>(key);
|
||||
sequence = (sequence << 3) | (static_cast<std::underlying_type<KeyEvent>::type>(key) + 1);
|
||||
return true;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue