diff options
Diffstat (limited to 'apps/plugins/rockboy')
-rw-r--r-- | apps/plugins/rockboy/loader.c | 4 | ||||
-rw-r--r-- | apps/plugins/rockboy/loader.h | 2 | ||||
-rw-r--r-- | apps/plugins/rockboy/rockboy.c | 6 | ||||
-rw-r--r-- | apps/plugins/rockboy/rockmacros.h | 2 |
4 files changed, 7 insertions, 7 deletions
diff --git a/apps/plugins/rockboy/loader.c b/apps/plugins/rockboy/loader.c index d48a06957e..71ab4e78d7 100644 --- a/apps/plugins/rockboy/loader.c +++ b/apps/plugins/rockboy/loader.c | |||
@@ -99,7 +99,7 @@ static const unsigned char ramsize_table[5] = | |||
99 | 0, 1, 1, 4, 16 | 99 | 0, 1, 1, 4, 16 |
100 | }; | 100 | }; |
101 | 101 | ||
102 | static char *romfile; | 102 | static const char *romfile; |
103 | static char sramfile[500]; | 103 | static char sramfile[500]; |
104 | static char rtcfile[500]; | 104 | static char rtcfile[500]; |
105 | static char saveprefix[500]; | 105 | static char saveprefix[500]; |
@@ -284,7 +284,7 @@ void cleanup(void) | |||
284 | /* IDEA - if error, write emergency savestate..? */ | 284 | /* IDEA - if error, write emergency savestate..? */ |
285 | } | 285 | } |
286 | 286 | ||
287 | void loader_init(char *s) | 287 | void loader_init(const char *s) |
288 | { | 288 | { |
289 | romfile = s; | 289 | romfile = s; |
290 | if(rom_load()) | 290 | if(rom_load()) |
diff --git a/apps/plugins/rockboy/loader.h b/apps/plugins/rockboy/loader.h index 33217d55f3..5ade6e7d8a 100644 --- a/apps/plugins/rockboy/loader.h +++ b/apps/plugins/rockboy/loader.h | |||
@@ -3,7 +3,7 @@ | |||
3 | #ifndef __LOADER_H__ | 3 | #ifndef __LOADER_H__ |
4 | #define __LOADER_H__ | 4 | #define __LOADER_H__ |
5 | 5 | ||
6 | void loader_init(char *s); | 6 | void loader_init(const char *s); |
7 | void cleanup(void); | 7 | void cleanup(void); |
8 | 8 | ||
9 | #endif | 9 | #endif |
diff --git a/apps/plugins/rockboy/rockboy.c b/apps/plugins/rockboy/rockboy.c index 58696a1f61..a0e87d041d 100644 --- a/apps/plugins/rockboy/rockboy.c +++ b/apps/plugins/rockboy/rockboy.c | |||
@@ -30,7 +30,7 @@ PLUGIN_IRAM_DECLARE | |||
30 | /* here is a global api struct pointer. while not strictly necessary, | 30 | /* here is a global api struct pointer. while not strictly necessary, |
31 | it's nice not to have to pass the api pointer in all function calls | 31 | it's nice not to have to pass the api pointer in all function calls |
32 | in the plugin */ | 32 | in the plugin */ |
33 | struct plugin_api* rb; | 33 | const struct plugin_api* rb; |
34 | int shut,cleanshut; | 34 | int shut,cleanshut; |
35 | char *errormsg; | 35 | char *errormsg; |
36 | 36 | ||
@@ -275,7 +275,7 @@ void doevents(void) | |||
275 | } | 275 | } |
276 | } | 276 | } |
277 | 277 | ||
278 | static int gnuboy_main(char *rom) | 278 | static int gnuboy_main(const char *rom) |
279 | { | 279 | { |
280 | rb->lcd_puts(0,0,"Init video"); | 280 | rb->lcd_puts(0,0,"Init video"); |
281 | vid_init(); | 281 | vid_init(); |
@@ -297,7 +297,7 @@ static int gnuboy_main(char *rom) | |||
297 | } | 297 | } |
298 | 298 | ||
299 | /* this is the plugin entry point */ | 299 | /* this is the plugin entry point */ |
300 | enum plugin_status plugin_start(struct plugin_api* api, void* parameter) | 300 | enum plugin_status plugin_start(const struct plugin_api* api, const void* parameter) |
301 | { | 301 | { |
302 | PLUGIN_IRAM_INIT(api) | 302 | PLUGIN_IRAM_INIT(api) |
303 | 303 | ||
diff --git a/apps/plugins/rockboy/rockmacros.h b/apps/plugins/rockboy/rockmacros.h index 89cb845ec2..18e4d5c255 100644 --- a/apps/plugins/rockboy/rockmacros.h +++ b/apps/plugins/rockboy/rockmacros.h | |||
@@ -26,7 +26,7 @@ | |||
26 | #define malloc(a) my_malloc(a) | 26 | #define malloc(a) my_malloc(a) |
27 | void *my_malloc(size_t size); | 27 | void *my_malloc(size_t size); |
28 | 28 | ||
29 | extern struct plugin_api* rb; | 29 | extern const struct plugin_api* rb; |
30 | extern int shut,cleanshut; | 30 | extern int shut,cleanshut; |
31 | void vid_init(void); | 31 | void vid_init(void); |
32 | inline void vid_begin(void); | 32 | inline void vid_begin(void); |