summaryrefslogtreecommitdiff
path: root/apps/plugins/nim.c
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2006-01-15 18:20:18 +0000
committerJens Arnold <amiconn@rockbox.org>2006-01-15 18:20:18 +0000
commita36b1d4083e5cf34df1b217516be28471e7d0dc7 (patch)
tree629bb610d0ffcc451d3b0383f62daaed7d602603 /apps/plugins/nim.c
parentc7c9069ed4bda959e649520342017d826123931e (diff)
downloadrockbox-a36b1d4083e5cf34df1b217516be28471e7d0dc7.tar.gz
rockbox-a36b1d4083e5cf34df1b217516be28471e7d0dc7.zip
New plugin loader. Solves the crashes introduced with the .bss changes while keeping the small binary size. The model & api version check is now part of the plugin loader. Codecs are not yet adapted, but the old method still works for them. Simulator plugins are not (yet) version-checked. API version numbering restarted, as this is an all-new system. Uses the target ID from configure, so don't change that too often.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8349 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/nim.c')
-rw-r--r--apps/plugins/nim.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/apps/plugins/nim.c b/apps/plugins/nim.c
index 27f1210ea4..d937af168b 100644
--- a/apps/plugins/nim.c
+++ b/apps/plugins/nim.c
@@ -20,7 +20,7 @@
20 20
21#ifdef HAVE_LCD_CHARCELLS 21#ifdef HAVE_LCD_CHARCELLS
22 22
23/* NIM game for the player 23/* NIM game for the player
24 24
25Rules of nim game 25Rules of nim game
26----------------- 26-----------------
@@ -46,6 +46,7 @@ V1.2 : 2003-07-30
46 take a match. Later you are obliged to take at least one.) 46 take a match. Later you are obliged to take at least one.)
47*/ 47*/
48 48
49PLUGIN_HEADER
49 50
50/*Pattern for the game*/ 51/*Pattern for the game*/
51static unsigned char smile[]={0x00, 0x11, 0x04, 0x04, 0x00, 0x11, 0x0E}; /* :-) */ 52static unsigned char smile[]={0x00, 0x11, 0x04, 0x04, 0x00, 0x11, 0x0E}; /* :-) */
@@ -140,11 +141,6 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter)
140 bool ok; 141 bool ok;
141 bool go; 142 bool go;
142 143
143 /* this macro should be called as the first thing you do in the plugin.
144 it test that the api version and model the plugin was compiled for
145 matches the machine it is running on */
146 TEST_PLUGIN_API(api);
147
148 /* if you don't use the parameter, you can do like 144 /* if you don't use the parameter, you can do like
149 this to avoid the compiler warning about it */ 145 this to avoid the compiler warning about it */
150 (void)parameter; 146 (void)parameter;