diff options
author | Paul Gilbert | 2018-11-23 11:38:30 -0800 |
---|---|---|
committer | Paul Gilbert | 2018-12-08 19:05:59 -0800 |
commit | 0b1e695f249d695333279eaf711b779c43b7b13d (patch) | |
tree | 570cb74bd70a7a128815172a458ac0ab25cc45a9 /engines/glk/blorb.cpp | |
parent | 720ef67a7d124f1d83fdea68879461bca9429a9b (diff) | |
download | scummvm-rg350-0b1e695f249d695333279eaf711b779c43b7b13d.tar.gz scummvm-rg350-0b1e695f249d695333279eaf711b779c43b7b13d.tar.bz2 scummvm-rg350-0b1e695f249d695333279eaf711b779c43b7b13d.zip |
GLK: FROTZ: Beginnings of support for Infocom picture files
Diffstat (limited to 'engines/glk/blorb.cpp')
-rw-r--r-- | engines/glk/blorb.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/engines/glk/blorb.cpp b/engines/glk/blorb.cpp index ace0e91813..f8a8cbd7c3 100644 --- a/engines/glk/blorb.cpp +++ b/engines/glk/blorb.cpp @@ -40,6 +40,7 @@ enum { ID_JPEG = MKTAG('J', 'P', 'E', 'G'), ID_PNG = MKTAG('P', 'N', 'G', ' '), + ID_Rect = MKTAG('R', 'e', 'c', 't'), ID_MIDI = MKTAG('M', 'I', 'D', 'I'), ID_MP3 = MKTAG('M', 'P', '3', ' '), @@ -138,9 +139,11 @@ Common::ErrorCode Blorb::load() { if (ce._type == ID_Pict) { ce._filename = Common::String::format("pic%u", ce._number); if (ce._id == ID_JPEG) - ce._filename += ".jpeg"; + ce._filename += ".jpg"; else if (ce._id == ID_PNG) ce._filename += ".png"; + else if (ce._id == ID_Rect) + ce._filename += ".rect"; } else if (ce._type == ID_Snd) { ce._filename = Common::String::format("snd%u", ce._number); |