diff options
author | Colin Snover | 2016-12-10 14:27:52 -0600 |
---|---|---|
committer | Colin Snover | 2016-12-19 14:46:59 -0600 |
commit | 2eadb3e92463c997c2ad81537db429ee063ad92e (patch) | |
tree | 9d0bb8649ea024d9971f7ef04c2b75dccc198c80 /engines/sci/graphics/celobj32.h | |
parent | 4cff1e400f7e1e885b12990a5a34772d05eb2285 (diff) | |
download | scummvm-rg350-2eadb3e92463c997c2ad81537db429ee063ad92e.tar.gz scummvm-rg350-2eadb3e92463c997c2ad81537db429ee063ad92e.tar.bz2 scummvm-rg350-2eadb3e92463c997c2ad81537db429ee063ad92e.zip |
SCI32: Improve ScreenItem missing resource error
Diffstat (limited to 'engines/sci/graphics/celobj32.h')
-rw-r--r-- | engines/sci/graphics/celobj32.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/engines/sci/graphics/celobj32.h b/engines/sci/graphics/celobj32.h index 03d950a3c3..70cbd09e7d 100644 --- a/engines/sci/graphics/celobj32.h +++ b/engines/sci/graphics/celobj32.h @@ -122,6 +122,18 @@ struct CelInfo32 { inline bool operator!=(const CelInfo32 &other) { return !(*this == other); } + + inline Common::String toString() const { + if (type == kCelTypeView) { + return Common::String::format("view %u, loop %d, cel %d", resourceId, loopNo, celNo); + } else if (type == kCelTypePic) { + return Common::String::format("pic %u", resourceId); + } else if (kCelTypeColor) { + return Common::String::format("color %d", color); + } else if (type == kCelTypeMem) { + return Common::String::format("mem %04x:%04x", PRINT_REG(bitmap)); + } + } }; class CelObj; |