o add my bsnes branch

This commit is contained in:
David Voswinkel
2009-05-12 20:05:00 +02:00
parent 1c30d3db56
commit 091b82a7ef
402 changed files with 68660 additions and 0 deletions

15
tools/bsnes/reader/reader.hpp Executable file
View File

@@ -0,0 +1,15 @@
class Reader {
public:
enum Type {
Unknown,
Normal,
GZIP,
ZIP,
JMA,
};
static Type detect(const char *fn, bool inspectheader);
virtual unsigned size() = 0;
virtual uint8_t* read(unsigned length = 0) = 0;
virtual bool ready() { return true; } //can only call read() when ready() returns true
};