Instead of going through a global callback function set the string table's default gender at the start of each frame

This will perform the CVAR lookup only once per frame, not once per string.
This commit is contained in:
Christoph Oelckers 2024-04-21 10:30:40 +02:00
commit f2d7bbea99
4 changed files with 7 additions and 10 deletions

View file

@ -31,7 +31,6 @@ struct SystemCallbacks
FString(*GetPlayerName)(int i);
bool (*DispatchEvent)(event_t* ev);
bool (*CheckGame)(const char* nm);
int (*GetGender)();
void (*MenuClosed)();
bool (*CheckMenudefOption)(const char* opt);
void (*ConsoleToggled)(int state);