diff options
author | Paul Gilbert | 2019-06-15 20:25:48 -0700 |
---|---|---|
committer | Paul Gilbert | 2019-06-15 22:31:50 -0700 |
commit | ec8409c115d7fe99e9d917e81218e3677ba9a18f (patch) | |
tree | 3459e3b2384374ffc1a00859da842cb194ebc452 /engines/glk/frotz | |
parent | f3dc9a86b3d5e12c564a7e764eba7239f3872359 (diff) | |
download | scummvm-rg350-ec8409c115d7fe99e9d917e81218e3677ba9a18f.tar.gz scummvm-rg350-ec8409c115d7fe99e9d917e81218e3677ba9a18f.tar.bz2 scummvm-rg350-ec8409c115d7fe99e9d917e81218e3677ba9a18f.zip |
GLK: Adding Quetzal classes to the base Glk namespace
Diffstat (limited to 'engines/glk/frotz')
-rw-r--r-- | engines/glk/frotz/quetzal.h | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/engines/glk/frotz/quetzal.h b/engines/glk/frotz/quetzal.h index 98765b8319..10effff25c 100644 --- a/engines/glk/frotz/quetzal.h +++ b/engines/glk/frotz/quetzal.h @@ -24,22 +24,12 @@ #define GLK_FROTZ_QUETZAL #include "glk/glk_types.h" +#include "glk/quetzal.h" #include "glk/frotz/frotz_types.h" namespace Glk { namespace Frotz { -enum QueztalTag { - ID_FORM = MKTAG('F', 'O', 'R', 'M'), - ID_IFZS = MKTAG('I', 'F', 'Z', 'S'), - ID_IFhd = MKTAG('I', 'F', 'h', 'd'), - ID_UMem = MKTAG('U', 'M', 'e', 'm'), - ID_CMem = MKTAG('C', 'M', 'e', 'm'), - ID_Stks = MKTAG('S', 't', 'k', 's'), - ID_ANNO = MKTAG('A', 'N', 'N', 'O'), - ID_SCVM = MKTAG('S', 'C', 'V', 'M') -}; - class Processor; class Quetzal { @@ -63,7 +53,7 @@ private: void write_word(zword w) { _out->writeUint16BE(w); } void write_long(uint l) { _out->writeUint32BE(l); } void write_run(zword run) { write_byte(0); write_byte(run); } - void write_chnk(QueztalTag id, zword len) { + void write_chnk(uint32 id, zword len) { _out->writeUint32BE(id); _out->writeUint32BE(len); } |