From 2eadb3e92463c997c2ad81537db429ee063ad92e Mon Sep 17 00:00:00 2001 From: Colin Snover Date: Sat, 10 Dec 2016 14:27:52 -0600 Subject: SCI32: Improve ScreenItem missing resource error --- engines/sci/graphics/celobj32.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'engines/sci/graphics/celobj32.h') 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; -- cgit v1.2.3