mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-18 16:03:05 +00:00
Put ScummNESFile class into separate file.
svn-id: r28497
This commit is contained in:
parent
3f3f43dd5e
commit
44405b664f
File diff suppressed because it is too large
Load Diff
@ -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;
|
||||
|
@ -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 \
|
||||
|
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user