mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-07-25 15:55:58 -04:00
Play dead init
This commit is contained in:
parent
457baa65f4
commit
00ee78f533
3 changed files with 3 additions and 3 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -29,7 +29,6 @@
|
||||||
|
|
||||||
# Other compiler/linker outputs
|
# Other compiler/linker outputs
|
||||||
*.elf
|
*.elf
|
||||||
*.bin
|
|
||||||
*.map
|
*.map
|
||||||
*.lst
|
*.lst
|
||||||
.dep/
|
.dep/
|
||||||
|
|
|
@ -148,7 +148,8 @@ SystemView::SystemView(
|
||||||
|
|
||||||
// Initial view.
|
// Initial view.
|
||||||
// TODO: Restore from non-volatile memory?
|
// TODO: Restore from non-volatile memory?
|
||||||
if (persistent_memory::playing_dead())
|
|
||||||
|
if (persistent_memory::playing_dead() == 0x59)
|
||||||
navigation_view.push(new PlayDeadView { navigation_view, true });
|
navigation_view.push(new PlayDeadView { navigation_view, true });
|
||||||
else
|
else
|
||||||
navigation_view.push(new BMPView { navigation_view });
|
navigation_view.push(new BMPView { navigation_view });
|
||||||
|
@ -232,7 +233,7 @@ void PlayDeadView::focus() {
|
||||||
|
|
||||||
PlayDeadView::PlayDeadView(NavigationView& nav, bool booting) {
|
PlayDeadView::PlayDeadView(NavigationView& nav, bool booting) {
|
||||||
_booting = booting;
|
_booting = booting;
|
||||||
persistent_memory::set_playing_dead(1);
|
persistent_memory::set_playing_dead(0x59);
|
||||||
|
|
||||||
add_children({ {
|
add_children({ {
|
||||||
&text_playdead1,
|
&text_playdead1,
|
||||||
|
|
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue