2012-06-23 12:16:37 +00:00
|
|
|
|
|
|
|
|
|
|
|
#ifndef __LOADER_H__
|
|
|
|
#define __LOADER_H__
|
|
|
|
|
|
|
|
|
|
|
|
typedef struct loader_s
|
|
|
|
{
|
|
|
|
char *rom;
|
|
|
|
char *base;
|
|
|
|
char *sram;
|
|
|
|
char *state;
|
|
|
|
int ramloaded;
|
|
|
|
} loader_t;
|
|
|
|
|
|
|
|
|
|
|
|
extern loader_t loader;
|
|
|
|
|
|
|
|
|
|
|
|
int rom_load();
|
|
|
|
int sram_load();
|
|
|
|
int sram_save();
|
|
|
|
|
2012-06-23 14:38:19 +00:00
|
|
|
void loader_init(char *s);
|
|
|
|
void state_save(int n);
|
|
|
|
void state_load(int n);
|
2012-06-23 12:16:37 +00:00
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|