mirror of
https://github.com/eried/portapack-mayhem.git
synced 2024-12-24 23:09:26 -05:00
Fixed Pacman global object initialization (#1891)
This commit is contained in:
parent
1800939833
commit
6193023c8f
6
firmware/application/external/external.cmake
vendored
6
firmware/application/external/external.cmake
vendored
@ -1,8 +1,8 @@
|
|||||||
set(EXTCPPSRC
|
set(EXTCPPSRC
|
||||||
|
|
||||||
#pacman
|
#pacman
|
||||||
# external/pacman/main.cpp
|
external/pacman/main.cpp
|
||||||
# external/pacman/ui_pacman.cpp
|
external/pacman/ui_pacman.cpp
|
||||||
|
|
||||||
#tetris
|
#tetris
|
||||||
external/tetris/main.cpp
|
external/tetris/main.cpp
|
||||||
@ -65,7 +65,7 @@ set(EXTCPPSRC
|
|||||||
)
|
)
|
||||||
|
|
||||||
set(EXTAPPLIST
|
set(EXTAPPLIST
|
||||||
# pacman
|
pacman
|
||||||
afsk_rx
|
afsk_rx
|
||||||
calculator
|
calculator
|
||||||
font_viewer
|
font_viewer
|
||||||
|
@ -13,8 +13,6 @@ namespace ui::external_app::pacman {
|
|||||||
#include "playfield.hpp"
|
#include "playfield.hpp"
|
||||||
#pragma GCC diagnostic pop
|
#pragma GCC diagnostic pop
|
||||||
|
|
||||||
Playfield _game;
|
|
||||||
|
|
||||||
PacmanView::PacmanView(NavigationView& nav)
|
PacmanView::PacmanView(NavigationView& nav)
|
||||||
: nav_(nav) {
|
: nav_(nav) {
|
||||||
add_children({&dummy});
|
add_children({&dummy});
|
||||||
@ -26,6 +24,7 @@ void PacmanView::focus() {
|
|||||||
|
|
||||||
void PacmanView::paint(Painter& painter) {
|
void PacmanView::paint(Painter& painter) {
|
||||||
(void)painter;
|
(void)painter;
|
||||||
|
static Playfield _game;
|
||||||
|
|
||||||
if (!initialized) {
|
if (!initialized) {
|
||||||
initialized = true;
|
initialized = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user