strings.c
changeset 4405 262b9ef8ab8f
parent 4386 04c0a9fe59c9
child 4416 e0e9a72882d0
equal deleted inserted replaced
4404:484c76b14294 4405:262b9ef8ab8f
   165 }
   165 }
   166 
   166 
   167 // The highest 8 bits of string contain the "case index".
   167 // The highest 8 bits of string contain the "case index".
   168 // These 8 bits will only be set when FormatString wants to print
   168 // These 8 bits will only be set when FormatString wants to print
   169 // the string in a different case. No one else except FormatString
   169 // the string in a different case. No one else except FormatString
   170 // should set those bits.
   170 // should set those bits, therefore string CANNOT be StringID, but uint32.
   171 char *GetStringWithArgs(char *buffr, StringID string, const int32 *argv)
   171 char *GetStringWithArgs(char *buffr, uint string, const int32 *argv)
   172 {
   172 {
   173 	uint index = GB(string,  0, 11);
   173 	uint index = GB(string,  0, 11);
   174 	uint tab   = GB(string, 11,  5);
   174 	uint tab   = GB(string, 11,  5);
   175 
   175 
   176 	if (GB(string, 0, 16) == 0) error("!invalid string id 0 in GetString");
   176 	if (GB(string, 0, 16) == 0) error("!invalid string id 0 in GetString");