diff options
Diffstat (limited to 'lib/sislangrecord.cpp')
-rw-r--r-- | lib/sislangrecord.cpp | 18 |
1 files changed, 18 insertions, 0 deletions
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 <stdio.h> + +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; +} + |