diff options
Diffstat (limited to 'apps/plugins/zxbox')
-rw-r--r-- | apps/plugins/zxbox/zxbox.c | 17 |
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 | ||
22 | PLUGIN_HEADER | 22 | PLUGIN_HEADER |
23 | PLUGIN_IRAM_DECLARE | ||
23 | 24 | ||
24 | struct plugin_api* rb; | 25 | struct plugin_api* rb; |
25 | 26 | ||
@@ -37,14 +38,6 @@ int use_shm = 0; | |||
37 | int small_screen,pause_on_iconify; | 38 | int small_screen,pause_on_iconify; |
38 | int vga_pause_bg; | 39 | int vga_pause_bg; |
39 | 40 | ||
40 | #ifdef USE_IRAM | ||
41 | extern char iramcopy[]; | ||
42 | extern char iramstart[]; | ||
43 | extern char iramend[]; | ||
44 | extern char iedata[]; | ||
45 | extern 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 | ||