StringTable cleanup and improvements

cleaned up function interface to avoid referencing the file system in the worker functions.
replaced StringTable's operators with functions.. The main reason is that these are far easier to look up when browsing the source.
This also fixes a premature translation in SBARINFO that was done in the parsing stage, not the printing stage.
This commit is contained in:
Christoph Oelckers 2024-04-21 10:07:14 +02:00
commit ebd4ebf298
50 changed files with 245 additions and 246 deletions

View file

@ -499,7 +499,7 @@ const char * G_SkillName()
if (pmnm != NULL) name = pmnm->GetChars();
}
if (*name == '$') name = GStrings(name+1);
if (*name == '$') name = GStrings.GetString(name+1);
return name;
}