- Utils patch (by tazpn)

o Expand length of gMoneyStatsDesc buffer for Italian and Dutch builds
o Move EnumToString to text utils from keymap
o Add ParseCommandLine utility function for parsing command line strings


git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@5138 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
Wanne
2012-04-02 08:54:47 +00:00
parent ca873a8222
commit de37581daf
12 changed files with 314 additions and 52 deletions
+21 -1
View File
@@ -611,7 +611,7 @@ extern STR16 gConditionDesc[ 9 ];
// Flugente FTW1: Added list of temperature descriptions
extern STR16 gTemperatureDesc[ 11 ];
extern CHAR16 gMoneyStatsDesc[][ 13 ];
extern CHAR16 gMoneyStatsDesc[][ 14 ];
// HEADROCK: Altered value to 16 //WarmSteel - And I need 17.
extern CHAR16 gWeaponStatsDesc[][ 17 ];
// HEADROCK: Added externs for Item Description Box icon and stat tooltips
@@ -2142,6 +2142,26 @@ extern STR16 Additional113Text[];
extern STR16 ranks[];
extern STR16 ranks[];
// Enumeration support
typedef struct Str8EnumLookupType {
int value;
const STR8 name;
} Str8EnumLookupType;
typedef struct Str16EnumLookupType {
int value;
const STR16 name;
} Str16EnumLookupType;
const STR8 EnumToString(int value, const Str8EnumLookupType *table);
const STR16 EnumToString(int value, const Str16EnumLookupType *table);
int StringToEnum(const STR8 value, const Str8EnumLookupType *table);
int StringToEnum(const STR8 value, const Str16EnumLookupType *table);
int StringToEnum(const STR16 value, const Str16EnumLookupType *table);
void ParseCommandLine(const char *start,char **argv,char *args,int *numargs,int *numchars);
void ParseCommandLine(const wchar_t *start,wchar_t **argv,wchar_t *args,int *numargs,int *numchars);
#endif