From ec2a5cce1a4e3609535a9ae902a80933fbb0f341 Mon Sep 17 00:00:00 2001 From: Anton Romanov Date: Mon, 25 Sep 2006 09:44:10 +0000 Subject: yet more code cleanup, quick snapshot feature,sound should no longer crash,light optimizations git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11041 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugins/zxbox/zxbox.c | 38 +++++++++++++------------------------- 1 file changed, 13 insertions(+), 25 deletions(-) (limited to 'apps/plugins/zxbox/zxbox.c') 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; static unsigned int gbuf_size = 0; #endif -long video_frames = 0; -long start_time = 0; +long video_frames IBSS_ATTR = 0 ; +long start_time IBSS_ATTR = 0; enum plugin_status plugin_start(struct plugin_api* api, void* parameter) { @@ -73,7 +73,6 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter) rb->pcm_play_stop(); #endif rb->splash(HZ, true, "Welcome to ZXBox"); - sp_init(); #ifdef USE_IRAM /* 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) rb->memset(iedata, 0, iend - iedata); #endif + sp_init(); + #ifdef USE_GRAY /* get the remainder of the plugin buffer */ gbuf = (unsigned char *) rb->plugin_get_buffer(&gbuf_size); @@ -101,8 +102,17 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter) #endif start_time = *rb->current_tick; + +#ifdef RB_PROFILE + rb->profile_thread(); +#endif + start_spectemu(parameter); +#ifdef RB_PROFILE + rb->profstop(); +#endif + #if defined(HAVE_ADJUSTABLE_CPU_FREQ) rb->cpu_boost(false); #endif @@ -269,25 +279,3 @@ void press_key(int c){ process_keys(); } -void spkey_textmode(void) -{ -} - -void spkey_screenmode(void) -{ -} - -void spscr_refresh_colors(void) -{ -} - -void resize_spect_scr(int s) -{ - /* just to disable warning */ - (void)s; -} - -int display_keyboard(void) -{ - return 0; -} -- cgit v1.2.3