Right now this just decrypts the bad words
| 219 | void grtext_SetProfanityFilter(bool enabled) { grtext_FilterProfanity = enabled; } |
| 220 | // Right now this just decrypts the bad words |
| 221 | void grtext_Init() { |
| 222 | for (auto & bad_word : bad_words) { |
| 223 | int pos = 0; |
| 224 | |
| 225 | while (bad_word[pos]) { |
| 226 | bad_word[pos] = bad_word[pos] ^ XORVAL; |
| 227 | pos++; |
| 228 | } |
| 229 | } |
| 230 | } |
| 231 | |
| 232 | // macro to get character width |
| 233 | static inline int CHAR_WIDTH(int font, int ch) { return (int)(grfont_GetCharWidth(font, ch) * Grtext_scale); } |
no outgoing calls
no test coverage detected