diff options
author | Jens Arnold <amiconn@rockbox.org> | 2005-06-29 18:54:56 +0000 |
---|---|---|
committer | Jens Arnold <amiconn@rockbox.org> | 2005-06-29 18:54:56 +0000 |
commit | cc377d5d18534c57d091e04573956c9b747b4ab6 (patch) | |
tree | b664c5807dc9fd8d2efdd3161ed34b7aa84c802c /apps/plugins | |
parent | 501d30117058b6c53b10aadf63cf1808182a904d (diff) |
Made it working again...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6929 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins')
-rw-r--r-- | apps/plugins/rockboy/rockboy.c | 17 |
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) rb->splash(HZ*3, true, "Play gameboy ROM file! (.gb/.gbc)"); return PLUGIN_OK; } - if (!audio_bufferbase) { - audio_bufferbase = audio_bufferpointer - = rb->plugin_get_audio_buffer(&audio_buffer_free); + + audio_bufferbase = audio_bufferpointer + = rb->plugin_get_audio_buffer(&audio_buffer_free); #if MEM <= 8 && !defined(SIMULATOR) - /* loaded as an overlay, protect from overwriting ourselves */ - if ((unsigned)(ovl_start_addr - (unsigned char *)audio_bufferbase) - < audio_buffer_free) - audio_buffer_free = ovl_start_addr - (unsigned char *)audio_bufferbase; + /* loaded as an overlay, protect from overwriting ourselves */ + if ((unsigned)(ovl_start_addr - (unsigned char *)audio_bufferbase) + < audio_buffer_free) + audio_buffer_free = ovl_start_addr - (unsigned char *)audio_bufferbase; #endif - } #ifdef USE_IRAM memcpy(iramstart, iramcopy, iramend-iramstart); #endif shut=0; cleanshut=0; - audio_bufferbase=audio_bufferpointer=0; - audio_buffer_free=0; /* now go ahead and have fun! */ /* rb->splash(HZ*2, true, "Rockboy v0.3"); */ |