Put ScummNESFile class into separate file.

svn-id: r28497
This commit is contained in:
Eugene Sandulenko 2007-08-08 23:31:21 +00:00
parent 3f3f43dd5e
commit 44405b664f
4 changed files with 16 additions and 1445 deletions

File diff suppressed because it is too large Load Diff

View File

@ -70,51 +70,6 @@ public:
uint32 write(const void *dataPtr, uint32 dataSize);
};
class ScummNESFile : public BaseScummFile {
public:
enum ROMset {
kROMsetUSA,
kROMsetEurope,
kROMsetSweden,
kROMsetFrance,
kROMsetGermany,
kROMsetSpain,
kROMsetNum
};
struct Resource;
struct LFLEntry;
struct LFL;
private:
Common::MemoryReadStream *_stream;
ROMset _ROMset;
byte *_buf;
bool generateIndex();
bool generateResource(int res);
uint16 extractResource(Common::WriteStream *out, const Resource *res);
byte fileReadByte();
uint16 fileReadUint16LE();
public:
ScummNESFile();
void setEnc(byte value);
bool open(const Common::String &filename, AccessMode mode = kFileReadMode);
bool openSubFile(const Common::String &filename);
void close();
bool eof() { return _stream->eos(); }
uint32 pos() { return _stream->pos(); }
uint32 size() { return _stream->size(); }
void seek(int32 offs, int whence = SEEK_SET) { _stream->seek(offs, whence); }
uint32 read(void *dataPtr, uint32 dataSize) { return _stream->read(dataPtr, dataSize); }
uint32 write(const void *dataPtr, uint32 dataSize);
};
class ScummDiskImage : public BaseScummFile {
private:
Common::MemoryReadStream *_stream;

View File

@ -14,6 +14,7 @@ MODULE_OBJS := \
detection.o \
dialogs.o \
file.o \
file_nes.o \
gfx.o \
he/script_v60he.o \
he/sound_he.o \

View File

@ -41,6 +41,7 @@
#include "scumm/debugger.h"
#include "scumm/dialogs.h"
#include "scumm/file.h"
#include "scumm/file_nes.h"
#include "scumm/imuse/imuse.h"
#include "scumm/imuse_digi/dimuse.h"
#include "scumm/smush/smush_mixer.h"