diff options
Diffstat (limited to 'apps/plugins/zxbox/zxbox.c')
-rw-r--r-- | apps/plugins/zxbox/zxbox.c | 38 |
1 files changed, 13 insertions, 25 deletions
diff --git a/apps/plugins/zxbox/zxbox.c b/apps/plugins/zxbox/zxbox.c index 1ca63d0eb5..eb177a090e 100644 --- a/apps/plugins/zxbox/zxbox.c +++ b/apps/plugins/zxbox/zxbox.c | |||
@@ -62,8 +62,8 @@ static unsigned char *gbuf; | |||
62 | static unsigned int gbuf_size = 0; | 62 | static unsigned int gbuf_size = 0; |
63 | #endif | 63 | #endif |
64 | 64 | ||
65 | long video_frames = 0; | 65 | long video_frames IBSS_ATTR = 0 ; |
66 | long start_time = 0; | 66 | long start_time IBSS_ATTR = 0; |
67 | 67 | ||
68 | enum plugin_status plugin_start(struct plugin_api* api, void* parameter) | 68 | enum plugin_status plugin_start(struct plugin_api* api, void* parameter) |
69 | { | 69 | { |
@@ -73,7 +73,6 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter) | |||
73 | rb->pcm_play_stop(); | 73 | rb->pcm_play_stop(); |
74 | #endif | 74 | #endif |
75 | rb->splash(HZ, true, "Welcome to ZXBox"); | 75 | rb->splash(HZ, true, "Welcome to ZXBox"); |
76 | sp_init(); | ||
77 | 76 | ||
78 | #ifdef USE_IRAM | 77 | #ifdef USE_IRAM |
79 | /* We need to stop audio playback in order to use IRAM */ | 78 | /* We need to stop audio playback in order to use IRAM */ |
@@ -83,6 +82,8 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter) | |||
83 | rb->memset(iedata, 0, iend - iedata); | 82 | rb->memset(iedata, 0, iend - iedata); |
84 | #endif | 83 | #endif |
85 | 84 | ||
85 | sp_init(); | ||
86 | |||
86 | #ifdef USE_GRAY | 87 | #ifdef USE_GRAY |
87 | /* get the remainder of the plugin buffer */ | 88 | /* get the remainder of the plugin buffer */ |
88 | gbuf = (unsigned char *) rb->plugin_get_buffer(&gbuf_size); | 89 | gbuf = (unsigned char *) rb->plugin_get_buffer(&gbuf_size); |
@@ -101,8 +102,17 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter) | |||
101 | #endif | 102 | #endif |
102 | 103 | ||
103 | start_time = *rb->current_tick; | 104 | start_time = *rb->current_tick; |
105 | |||
106 | #ifdef RB_PROFILE | ||
107 | rb->profile_thread(); | ||
108 | #endif | ||
109 | |||
104 | start_spectemu(parameter); | 110 | start_spectemu(parameter); |
105 | 111 | ||
112 | #ifdef RB_PROFILE | ||
113 | rb->profstop(); | ||
114 | #endif | ||
115 | |||
106 | #if defined(HAVE_ADJUSTABLE_CPU_FREQ) | 116 | #if defined(HAVE_ADJUSTABLE_CPU_FREQ) |
107 | rb->cpu_boost(false); | 117 | rb->cpu_boost(false); |
108 | #endif | 118 | #endif |
@@ -269,25 +279,3 @@ void press_key(int c){ | |||
269 | process_keys(); | 279 | process_keys(); |
270 | } | 280 | } |
271 | 281 | ||
272 | void spkey_textmode(void) | ||
273 | { | ||
274 | } | ||
275 | |||
276 | void spkey_screenmode(void) | ||
277 | { | ||
278 | } | ||
279 | |||
280 | void spscr_refresh_colors(void) | ||
281 | { | ||
282 | } | ||
283 | |||
284 | void resize_spect_scr(int s) | ||
285 | { | ||
286 | /* just to disable warning */ | ||
287 | (void)s; | ||
288 | } | ||
289 | |||
290 | int display_keyboard(void) | ||
291 | { | ||
292 | return 0; | ||
293 | } | ||