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:
parent
f4a42dae1d
commit
ebd4ebf298
50 changed files with 245 additions and 246 deletions
|
|
@ -456,7 +456,7 @@ static bool Cht_Music (cheatseq_t *cheat)
|
|||
|
||||
static bool Cht_BeholdMenu (cheatseq_t *cheat)
|
||||
{
|
||||
Printf ("%s\n", GStrings("STSTR_BEHOLD"));
|
||||
Printf ("%s\n", GStrings.GetString("STSTR_BEHOLD"));
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
@ -518,7 +518,7 @@ static bool Cht_MyPos (cheatseq_t *cheat)
|
|||
static bool Cht_Ticker (cheatseq_t *cheat)
|
||||
{
|
||||
ticker = !ticker;
|
||||
Printf ("%s\n", GStrings(ticker ? "TXT_CHEATTICKERON" : "TXT_CHEATTICKEROFF"));
|
||||
Printf ("%s\n", GStrings.GetString(ticker ? "TXT_CHEATTICKERON" : "TXT_CHEATTICKEROFF"));
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue