summaryrefslogtreecommitdiff
path: root/apps/plugins/zxbox
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/zxbox')
-rw-r--r--apps/plugins/zxbox/zxbox.c17
1 files changed, 2 insertions, 15 deletions
diff --git a/apps/plugins/zxbox/zxbox.c b/apps/plugins/zxbox/zxbox.c
index 54a11d010e..753fb1ff5b 100644
--- a/apps/plugins/zxbox/zxbox.c
+++ b/apps/plugins/zxbox/zxbox.c
@@ -20,6 +20,7 @@
20#include "zxconfig.h" 20#include "zxconfig.h"
21 21
22PLUGIN_HEADER 22PLUGIN_HEADER
23PLUGIN_IRAM_DECLARE
23 24
24struct plugin_api* rb; 25struct plugin_api* rb;
25 26
@@ -37,14 +38,6 @@ int use_shm = 0;
37int small_screen,pause_on_iconify; 38int small_screen,pause_on_iconify;
38int vga_pause_bg; 39int vga_pause_bg;
39 40
40#ifdef USE_IRAM
41extern char iramcopy[];
42extern char iramstart[];
43extern char iramend[];
44extern char iedata[];
45extern char iend[];
46#endif
47
48#include "keymaps.h" 41#include "keymaps.h"
49#include "zxvid_com.h" 42#include "zxvid_com.h"
50#include "spmain.h" 43#include "spmain.h"
@@ -75,13 +68,7 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter)
75 rb->lcd_set_backdrop(NULL); 68 rb->lcd_set_backdrop(NULL);
76 rb->splash(HZ, true, "Welcome to ZXBox"); 69 rb->splash(HZ, true, "Welcome to ZXBox");
77 70
78#ifdef USE_IRAM 71 PLUGIN_IRAM_INIT(rb)
79 /* We need to stop audio playback in order to use IRAM */
80 rb->audio_stop();
81
82 rb->memcpy(iramstart, iramcopy, iramend-iramstart);
83 rb->memset(iedata, 0, iend - iedata);
84#endif
85 72
86 sp_init(); 73 sp_init();
87 74