diff options
Diffstat (limited to 'apps/plugins/rockboy/rockboy.c')
-rw-r--r-- | apps/plugins/rockboy/rockboy.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/apps/plugins/rockboy/rockboy.c b/apps/plugins/rockboy/rockboy.c index fc004e752d..a21e9e4368 100644 --- a/apps/plugins/rockboy/rockboy.c +++ b/apps/plugins/rockboy/rockboy.c | |||
@@ -36,6 +36,8 @@ const struct { | |||
36 | 0x524f564c, /* ROVL */ | 36 | 0x524f564c, /* ROVL */ |
37 | ovl_start_addr, ovl_end_addr, plugin_start | 37 | ovl_start_addr, ovl_end_addr, plugin_start |
38 | }; | 38 | }; |
39 | #else | ||
40 | PLUGIN_HEADER | ||
39 | #endif | 41 | #endif |
40 | 42 | ||
41 | #ifdef USE_IRAM | 43 | #ifdef USE_IRAM |
@@ -93,17 +95,12 @@ void setmallocpos(void *pointer) | |||
93 | /* this is the plugin entry point */ | 95 | /* this is the plugin entry point */ |
94 | enum plugin_status plugin_start(struct plugin_api* api, void* parameter) | 96 | enum plugin_status plugin_start(struct plugin_api* api, void* parameter) |
95 | { | 97 | { |
96 | /* this macro should be called as the first thing you do in the plugin. | ||
97 | it test that the api version and model the plugin was compiled for | ||
98 | matches the machine it is running on */ | ||
99 | TEST_PLUGIN_API(api); | ||
100 | |||
101 | /* if you are using a global api pointer, don't forget to copy it! | 98 | /* if you are using a global api pointer, don't forget to copy it! |
102 | otherwise you will get lovely "I04: IllInstr" errors... :-) */ | 99 | otherwise you will get lovely "I04: IllInstr" errors... :-) */ |
103 | rb = api; | 100 | rb = api; |
104 | 101 | ||
105 | rb->lcd_setfont(0); | 102 | rb->lcd_setfont(0); |
106 | 103 | ||
107 | if (!parameter) { | 104 | if (!parameter) { |
108 | rb->splash(HZ*3, true, "Play gameboy ROM file! (.gb/.gbc)"); | 105 | rb->splash(HZ*3, true, "Play gameboy ROM file! (.gb/.gbc)"); |
109 | return PLUGIN_OK; | 106 | return PLUGIN_OK; |