diff options
Diffstat (limited to 'apps/plugins/rockboy/rockboy.c')
-rw-r--r-- | apps/plugins/rockboy/rockboy.c | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/apps/plugins/rockboy/rockboy.c b/apps/plugins/rockboy/rockboy.c index 6733bf8551..ae0d218ccb 100644 --- a/apps/plugins/rockboy/rockboy.c +++ b/apps/plugins/rockboy/rockboy.c | |||
@@ -29,10 +29,6 @@ | |||
29 | PLUGIN_HEADER | 29 | PLUGIN_HEADER |
30 | PLUGIN_IRAM_DECLARE | 30 | PLUGIN_IRAM_DECLARE |
31 | 31 | ||
32 | /* here is a global api struct pointer. while not strictly necessary, | ||
33 | it's nice not to have to pass the api pointer in all function calls | ||
34 | in the plugin */ | ||
35 | const struct plugin_api* rb; | ||
36 | int shut,cleanshut; | 32 | int shut,cleanshut; |
37 | char *errormsg; | 33 | char *errormsg; |
38 | 34 | ||
@@ -324,13 +320,9 @@ static int gnuboy_main(const char *rom) | |||
324 | } | 320 | } |
325 | 321 | ||
326 | /* this is the plugin entry point */ | 322 | /* this is the plugin entry point */ |
327 | enum plugin_status plugin_start(const struct plugin_api* api, const void* parameter) | 323 | enum plugin_status plugin_start(const void* parameter) |
328 | { | 324 | { |
329 | PLUGIN_IRAM_INIT(api) | 325 | PLUGIN_IRAM_INIT(rb) |
330 | |||
331 | /* if you are using a global api pointer, don't forget to copy it! | ||
332 | otherwise you will get lovely "I04: IllInstr" errors... :-) */ | ||
333 | rb = api; | ||
334 | 326 | ||
335 | rb->lcd_setfont(0); | 327 | rb->lcd_setfont(0); |
336 | 328 | ||