* Translates 0x1B 0xXX occurences into extended ASCII values (0x7F + 0xXX). * * @param source The untranslated string. * @param dest The translated string. */
| 105 | * @param dest The translated string. |
| 106 | */ |
| 107 | void String_TranslateSpecial(char *string) |
| 108 | { |
| 109 | char * dest; |
| 110 | if (string == NULL) return; |
| 111 | |
| 112 | dest = string; |
| 113 | while (*string != '\0') { |
| 114 | char c = *string++; |
| 115 | if (c == 0x1B) { |
| 116 | c = 0x7F + (*string++); |
| 117 | } |
| 118 | *dest++ = c; |
| 119 | } |
| 120 | *dest = '\0'; |
| 121 | } |
| 122 | |
| 123 | static void String_Load(const char *filename, bool compressed, int start, int end) |
| 124 | { |
no outgoing calls
no test coverage detected