summaryrefslogtreecommitdiff
path: root/strings.h
blob: e60e508307101e23569fdddc08d933cb3ecd6f68 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#ifndef STRINGS_H
#define STRINGS_H

static inline char* InlineString(char* buf, uint16 string)
{
	*buf++ = '\x81';
	*buf++ = string & 0xFF;
	*buf++ = string >> 8;
	return buf;
}

char *GetString(char *buffr, uint16 string);
char *GetStringWithArgs(char *buffr, uint string, const int32 *argv);

void InjectDParam(int amount);
int32 GetParamInt32(void);
uint GetCurrentCurrencyRate(void);

#endif