mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-02 00:42:24 +00:00
MOHAWK: Make LB's readString/readRect more generic.
This commit is contained in:
parent
168ba00ea3
commit
c2319a3a81
@ -42,7 +42,7 @@
|
||||
namespace Mohawk {
|
||||
|
||||
// read a null-terminated string from a stream
|
||||
Common::String MohawkEngine_LivingBooks::readString(Common::SeekableSubReadStreamEndian *stream) {
|
||||
Common::String MohawkEngine_LivingBooks::readString(Common::ReadStream *stream) {
|
||||
Common::String ret;
|
||||
while (!stream->eos()) {
|
||||
byte in = stream->readByte();
|
||||
@ -54,7 +54,7 @@ Common::String MohawkEngine_LivingBooks::readString(Common::SeekableSubReadStrea
|
||||
}
|
||||
|
||||
// read a rect from a stream
|
||||
Common::Rect MohawkEngine_LivingBooks::readRect(Common::SeekableSubReadStreamEndian *stream) {
|
||||
Common::Rect MohawkEngine_LivingBooks::readRect(Common::ReadStreamEndian *stream) {
|
||||
Common::Rect rect;
|
||||
|
||||
// the V1 mac games have their rects in QuickDraw order
|
||||
|
@ -655,8 +655,8 @@ public:
|
||||
void addNotifyEvent(NotifyEvent event);
|
||||
|
||||
Common::SeekableSubReadStreamEndian *wrapStreamEndian(uint32 tag, uint16 id);
|
||||
Common::String readString(Common::SeekableSubReadStreamEndian *stream);
|
||||
Common::Rect readRect(Common::SeekableSubReadStreamEndian *stream);
|
||||
Common::String readString(Common::ReadStream *stream);
|
||||
Common::Rect readRect(Common::ReadStreamEndian *stream);
|
||||
GUI::Debugger *getDebugger() { return _console; }
|
||||
|
||||
void addArchive(MohawkArchive *archive);
|
||||
|
Loading…
x
Reference in New Issue
Block a user