fix crash when specifying --source on command line
[rofl0r-gnuboy.git] / loader.h
blob8cb9b0e548391a6e02bf50ce86bff1d6b9dd8cb9
3 #ifndef __LOADER_H__
4 #define __LOADER_H__
7 typedef struct loader_s
9 char *rom;
10 char *base;
11 char *sram;
12 char *state;
13 int ramloaded;
14 } loader_t;
17 extern loader_t loader;
20 int rom_load();
21 int sram_load();
22 int sram_save();
24 int loader_init(char *s);
25 void loader_unload(void);
26 char *loader_get_error();
27 void loader_set_error(char *fmt, ...);
29 void state_save(int n);
30 void state_load(int n);
32 #endif