summaryrefslogtreecommitdiff
path: root/apps/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins')
-rw-r--r--apps/plugins/rockboy/rockboy.c17
1 files changed, 7 insertions, 10 deletions
diff --git a/apps/plugins/rockboy/rockboy.c b/apps/plugins/rockboy/rockboy.c
index 88984f91b0..f389accd51 100644
--- a/apps/plugins/rockboy/rockboy.c
+++ b/apps/plugins/rockboy/rockboy.c
@@ -97,24 +97,21 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter)
97 rb->splash(HZ*3, true, "Play gameboy ROM file! (.gb/.gbc)"); 97 rb->splash(HZ*3, true, "Play gameboy ROM file! (.gb/.gbc)");
98 return PLUGIN_OK; 98 return PLUGIN_OK;
99 } 99 }
100 if (!audio_bufferbase) { 100
101 audio_bufferbase = audio_bufferpointer 101 audio_bufferbase = audio_bufferpointer
102 = rb->plugin_get_audio_buffer(&audio_buffer_free); 102 = rb->plugin_get_audio_buffer(&audio_buffer_free);
103#if MEM <= 8 && !defined(SIMULATOR) 103#if MEM <= 8 && !defined(SIMULATOR)
104 /* loaded as an overlay, protect from overwriting ourselves */ 104 /* loaded as an overlay, protect from overwriting ourselves */
105 if ((unsigned)(ovl_start_addr - (unsigned char *)audio_bufferbase) 105 if ((unsigned)(ovl_start_addr - (unsigned char *)audio_bufferbase)
106 < audio_buffer_free) 106 < audio_buffer_free)
107 audio_buffer_free = ovl_start_addr - (unsigned char *)audio_bufferbase; 107 audio_buffer_free = ovl_start_addr - (unsigned char *)audio_bufferbase;
108#endif 108#endif
109 }
110 109
111#ifdef USE_IRAM 110#ifdef USE_IRAM
112 memcpy(iramstart, iramcopy, iramend-iramstart); 111 memcpy(iramstart, iramcopy, iramend-iramstart);
113#endif 112#endif
114 shut=0; 113 shut=0;
115 cleanshut=0; 114 cleanshut=0;
116 audio_bufferbase=audio_bufferpointer=0;
117 audio_buffer_free=0;
118 115
119 /* now go ahead and have fun! */ 116 /* now go ahead and have fun! */
120 /* rb->splash(HZ*2, true, "Rockboy v0.3"); */ 117 /* rb->splash(HZ*2, true, "Rockboy v0.3"); */