diff options
Diffstat (limited to 'apps/plugins/chip8.c')
-rw-r--r-- | apps/plugins/chip8.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/apps/plugins/chip8.c b/apps/plugins/chip8.c index ceab1431dd..9452b72fb4 100644 --- a/apps/plugins/chip8.c +++ b/apps/plugins/chip8.c | |||
@@ -26,8 +26,6 @@ | |||
26 | 26 | ||
27 | PLUGIN_HEADER | 27 | PLUGIN_HEADER |
28 | 28 | ||
29 | static const struct plugin_api* rb; /* here is a global api struct pointer */ | ||
30 | |||
31 | #define EXTERN static | 29 | #define EXTERN static |
32 | #define STATIC static | 30 | #define STATIC static |
33 | #define memset rb->memset | 31 | #define memset rb->memset |
@@ -1423,12 +1421,10 @@ bool chip8_run(const char* file) | |||
1423 | 1421 | ||
1424 | /***************** Plugin Entry Point *****************/ | 1422 | /***************** Plugin Entry Point *****************/ |
1425 | 1423 | ||
1426 | enum plugin_status plugin_start(const struct plugin_api* api, const void* parameter) | 1424 | enum plugin_status plugin_start(const void* parameter) |
1427 | { | 1425 | { |
1428 | const char* filename; | 1426 | const char* filename; |
1429 | 1427 | ||
1430 | rb = api; /* copy to global api pointer */ | ||
1431 | |||
1432 | if (parameter == NULL) | 1428 | if (parameter == NULL) |
1433 | { | 1429 | { |
1434 | rb->splash(HZ, "Play a .ch8 file!"); | 1430 | rb->splash(HZ, "Play a .ch8 file!"); |