From eecba3b5fcb47a01e6e13ee1940def989f6dd22d Mon Sep 17 00:00:00 2001 From: Fritz Elfert Date: Thu, 28 Feb 2002 20:56:59 +0000 Subject: - Added SIS stuff by Daniel Brahneborg --- lib/sislangrecord.cpp | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 lib/sislangrecord.cpp (limited to 'lib/sislangrecord.cpp') diff --git a/lib/sislangrecord.cpp b/lib/sislangrecord.cpp new file mode 100644 index 0000000..c79c45b --- /dev/null +++ b/lib/sislangrecord.cpp @@ -0,0 +1,18 @@ + +#include "sislangrecord.h" + +#include + +void +SISLangRecord::fillFrom(uchar* buf, int* base) +{ + int ix = *base; + m_lang = read16(buf, &ix); + if (logLevel >= 2) + printf("Got language %d (%s)\n", m_lang, langTable[m_lang].m_name); + if (logLevel >= 1) + printf("%d .. %d (%d bytes): Language record for %s\n", + *base, ix, ix - *base, langTable[m_lang].m_name); + *base = ix; +} + -- cgit v1.2.3