mirror of
https://github.com/ZDoom/Raze.git
synced 2025-06-02 10:11:04 +00:00
- backend update from GZDoom.
This commit is contained in:
parent
4d226d19e7
commit
eae97ded1b
4 changed files with 21 additions and 13 deletions
|
@ -513,6 +513,26 @@ size_t FStringTable::ProcessEscapes (char *iptr)
|
|||
c = '\r';
|
||||
else if (c == 't')
|
||||
c = '\t';
|
||||
else if (c == 'x')
|
||||
{
|
||||
c = 0;
|
||||
for (int i = 0; i < 2; i++)
|
||||
{
|
||||
char cc = *iptr++;
|
||||
if (cc >= '0' && cc <= '9')
|
||||
c = (c << 4) + cc - '0';
|
||||
else if (cc >= 'a' && cc <= 'f')
|
||||
c = (c << 4) + 10 + cc - 'a';
|
||||
else if (cc >= 'A' && cc <= 'F')
|
||||
c = (c << 4) + 10 + cc - 'A';
|
||||
else
|
||||
{
|
||||
iptr--;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (c == 0) continue;
|
||||
}
|
||||
else if (c == '\n')
|
||||
continue;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue