repo.or.cz
/
rofl0r-gnuboy.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
fix crash when specifying --source on command line
[rofl0r-gnuboy.git]
/
loader.h
blob
8cb9b0e548391a6e02bf50ce86bff1d6b9dd8cb9
1
2
3
#ifndef __LOADER_H__
4
#define __LOADER_H__
5
6
7
typedef
struct
loader_s
8
{
9
char
*
rom
;
10
char
*
base
;
11
char
*
sram
;
12
char
*
state
;
13
int
ramloaded
;
14
}
loader_t
;
15
16
17
extern
loader_t loader
;
18
19
20
int
rom_load
();
21
int
sram_load
();
22
int
sram_save
();
23
24
int
loader_init
(
char
*
s
);
25
void
loader_unload
(
void
);
26
char
*
loader_get_error
();
27
void
loader_set_error
(
char
*
fmt
, ...);
28
29
void
state_save
(
int
n
);
30
void
state_load
(
int
n
);
31
32
#endif
33
34