aboutsummaryrefslogtreecommitdiff
path: root/scumm/scumm.h
diff options
context:
space:
mode:
authorEugene Sandulenko2005-03-30 21:59:12 +0000
committerEugene Sandulenko2005-03-30 21:59:12 +0000
commit7ae3da082ebedfc76a8b2b62278d24799a31dd10 (patch)
treefae1c641912def806b80988b143490917f86c28d /scumm/scumm.h
parent63911718ee6d1c4c25d70c710d1d80e7747bb103 (diff)
downloadscummvm-rg350-7ae3da082ebedfc76a8b2b62278d24799a31dd10.tar.gz
scummvm-rg350-7ae3da082ebedfc76a8b2b62278d24799a31dd10.tar.bz2
scummvm-rg350-7ae3da082ebedfc76a8b2b62278d24799a31dd10.zip
Support for direct reading from NES ROM:
o extend MemoryReadStream with XOR facility o implement MemoryWriteStream o _fileHandle now is a reference to BaseScummFile class and is created on the fly o implement ScummNESFile class which is basically extract_mm_nes utility o update NES MM md5's due to above changes NOTE: to run MM NES now you need to remove *.LFL files and (probably) rename ROM to standard conventional name 'Maniac Mansion (XXX).nes' svn-id: r17300
Diffstat (limited to 'scumm/scumm.h')
-rw-r--r--scumm/scumm.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/scumm/scumm.h b/scumm/scumm.h
index 5fc23affd6..ed2279a64d 100644
--- a/scumm/scumm.h
+++ b/scumm/scumm.h
@@ -617,13 +617,13 @@ protected:
void doSentence(int c, int b, int a);
/* Should be in Resource class */
- ScummFile _fileHandle;
+ BaseScummFile *_fileHandle;
uint32 _fileOffset;
public:
/** The name of the (macintosh/rescumm style) container file, if any. */
Common::String _containerFile;
- bool openFile(ScummFile &file, const char *filename);
+ bool openFile(BaseScummFile &file, const char *filename);
protected:
int _resourceHeaderSize;
@@ -1169,9 +1169,9 @@ protected:
#if defined(SCUMM_LITTLE_ENDIAN)
- uint32 fileReadDword() { return _fileHandle.readUint32LE(); }
+ uint32 fileReadDword() { return _fileHandle->readUint32LE(); }
#elif defined(SCUMM_BIG_ENDIAN)
- uint32 fileReadDword() { return _fileHandle.readUint32BE(); }
+ uint32 fileReadDword() { return _fileHandle->readUint32BE(); }
#endif
public: