strings.h
author celestar
Fri, 28 Apr 2006 07:53:10 +0000
branch0.4
changeset 9972 667166ed9a4c
parent 9959 984493ab6fff
permissions -rw-r--r--
(svn r4608) -Backported r4413 from trunk:
-Fix: fixed a bug which pushed the client back to the main menu when a
server is in the mainserver-list which sends out illegal signals. Many
tnx to 'test' for finding and isolating the problem.
-Fix: also specify the problem a bit better
/* $Id$ */

#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);

extern char _userstring[128];

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

#endif /* STRINGS_H */