summaryrefslogtreecommitdiff
path: root/apps/plugins/rockboy
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/rockboy')
-rw-r--r--apps/plugins/rockboy/loader.c4
-rw-r--r--apps/plugins/rockboy/loader.h2
-rw-r--r--apps/plugins/rockboy/rockboy.c6
-rw-r--r--apps/plugins/rockboy/rockmacros.h2
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
102static char *romfile; 102static const char *romfile;
103static char sramfile[500]; 103static char sramfile[500];
104static char rtcfile[500]; 104static char rtcfile[500];
105static char saveprefix[500]; 105static 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
287void loader_init(char *s) 287void 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
6void loader_init(char *s); 6void loader_init(const char *s);
7void cleanup(void); 7void 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 */
33struct plugin_api* rb; 33const struct plugin_api* rb;
34int shut,cleanshut; 34int shut,cleanshut;
35char *errormsg; 35char *errormsg;
36 36
@@ -275,7 +275,7 @@ void doevents(void)
275 } 275 }
276} 276}
277 277
278static int gnuboy_main(char *rom) 278static 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 */
300enum plugin_status plugin_start(struct plugin_api* api, void* parameter) 300enum 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)
27void *my_malloc(size_t size); 27void *my_malloc(size_t size);
28 28
29extern struct plugin_api* rb; 29extern const struct plugin_api* rb;
30extern int shut,cleanshut; 30extern int shut,cleanshut;
31void vid_init(void); 31void vid_init(void);
32inline void vid_begin(void); 32inline void vid_begin(void);