Playdead default sequence and validity check

This commit is contained in:
furrtek 2016-12-26 13:49:23 +01:00
parent a0b4212c92
commit f033782d4b
5 changed files with 29 additions and 12 deletions

View file

@ -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;
};