summaryrefslogtreecommitdiff
path: root/apps/plugins/sokoban.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/sokoban.c')
-rw-r--r--apps/plugins/sokoban.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/apps/plugins/sokoban.c b/apps/plugins/sokoban.c
index 98faf7961f..96dc17591c 100644
--- a/apps/plugins/sokoban.c
+++ b/apps/plugins/sokoban.c
@@ -452,8 +452,7 @@ static struct BufferedBoards {
452} buffered_boards; 452} buffered_boards;
453 453
454 454
455static const struct plugin_api* rb; 455MEM_FUNCTION_WRAPPERS;
456MEM_FUNCTION_WRAPPERS(rb);
457 456
458static char buf[ROWS*(COLS + 1)]; /* Enough for a whole board or a filename */ 457static char buf[ROWS*(COLS + 1)]; /* Enough for a whole board or a filename */
459 458
@@ -1257,7 +1256,7 @@ static int sokoban_menu(void)
1257 break; 1256 break;
1258 1257
1259 case 2: /* Audio playback control */ 1258 case 2: /* Audio playback control */
1260 playback_control(rb, NULL); 1259 playback_control(NULL);
1261 menu_quit = false; 1260 menu_quit = false;
1262 break; 1261 break;
1263 1262
@@ -1613,12 +1612,11 @@ static bool sokoban_loop(void)
1613} 1612}
1614 1613
1615 1614
1616enum plugin_status plugin_start(const struct plugin_api* api, const void* parameter) 1615enum plugin_status plugin_start(const void* parameter)
1617{ 1616{
1618 int w, h; 1617 int w, h;
1619 1618
1620 (void)(parameter); 1619 (void)(parameter);
1621 rb = api;
1622 1620
1623 rb->lcd_setfont(SOKOBAN_FONT); 1621 rb->lcd_setfont(SOKOBAN_FONT);
1624 1622