summaryrefslogtreecommitdiff
path: root/apps/plugins/nim.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/nim.c')
-rw-r--r--apps/plugins/nim.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/apps/plugins/nim.c b/apps/plugins/nim.c
index 1500407f49..4f8f33b03b 100644
--- a/apps/plugins/nim.c
+++ b/apps/plugins/nim.c
@@ -62,8 +62,6 @@ static unsigned char str[12]; /*String use to display the first line*/
62static unsigned long hsmile,hcry,h1,h2; /*Handle for the new pattern*/ 62static unsigned long hsmile,hcry,h1,h2; /*Handle for the new pattern*/
63 63
64static bool end; /*If true game is finished*/ 64static bool end; /*If true game is finished*/
65static const struct plugin_api* rb;
66
67 65
68/*Display that the action it's impossible*/ 66/*Display that the action it's impossible*/
69static void impossible(void) 67static void impossible(void)
@@ -141,7 +139,7 @@ static void nim_exit(void *parameter)
141} 139}
142 140
143/* this is the plugin entry point */ 141/* this is the plugin entry point */
144enum plugin_status plugin_start(const struct plugin_api* api, const void* parameter) 142enum plugin_status plugin_start(const void* parameter)
145{ 143{
146 int y,z,button; 144 int y,z,button;
147 int x,v,min; 145 int x,v,min;
@@ -152,10 +150,6 @@ enum plugin_status plugin_start(const struct plugin_api* api, const void* parame
152 this to avoid the compiler warning about it */ 150 this to avoid the compiler warning about it */
153 (void)parameter; 151 (void)parameter;
154 152
155 /* if you are using a global api pointer, don't forget to copy it!
156 otherwise you will get lovely "I04: IllInstr" errors... :-) */
157 rb = api;
158
159 /*Get the pattern handle*/ 153 /*Get the pattern handle*/
160 h1=rb->lcd_get_locked_pattern(); 154 h1=rb->lcd_get_locked_pattern();
161 h2=rb->lcd_get_locked_pattern(); 155 h2=rb->lcd_get_locked_pattern();