aboutsummaryrefslogtreecommitdiffstats
path: root/lib/sislangrecord.cpp
blob: ede1d33cab641f775e94a3458104479733e1edda (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#include "sislangrecord.h"

#include <stdio.h>

void
SISLangRecord::fillFrom(uchar* buf, int* base)
{
	m_lang = read16(buf + *base);
	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, *base + 2, 2, langTable[m_lang].m_name);
	*base += 2;
}