2 Cantaveria - action adventure platform game
3 Copyright (C) 2009 2010 Evan Rinehart
5 This program is free software; you can redistribute it and/or
6 modify it under the terms of the GNU General Public License
7 as published by the Free Software Foundation; either version 2
8 of the License, or (at your option) any later version.
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
15 You should have received a copy of the GNU General Public License
16 along with this program; if not, write to
18 The Free Software Foundation, Inc.
19 51 Franklin Street, Fifth Floor
20 Boston, MA 02110-1301, USA
23 typedef struct reader reader
;
28 reader
* data_open(char* dir
, char* filename
);
29 reader
* loader_open(char* filename
);
31 int loader_read(reader
* rd
, void* buf
, int count
);
32 int loader_readline(reader
* rd
, char* buf
, int size
);
33 int loader_scanline(reader
* rd
, char* format
, ...);
34 unsigned char* loader_readall(char* filename
, int* size
);
35 void loader_close(reader
* rd
);
37 list
* loader_readdir(char* path
);
38 void loader_freedirlist(list
* dirs
);
41 int read_byte(reader
* rd
);
42 int read_short(reader
* rd
);
43 int read_int(reader
* rd
);
44 char* read_string(reader
* rd
);