[Patches] Support most escape characters

This commit is contained in:
nastys
2020-06-02 20:18:14 +02:00
parent 7225ccb589
commit 9f71b4d4b2
2 changed files with 29 additions and 1 deletions
@@ -870,6 +870,34 @@ void ApplyCustomPatches(std::wstring CPATCH_FILE_STRING)
byte_u = '\n';
i++;
break;
case 't':
byte_u = '\t';
i++;
break;
case 'r':
byte_u = '\r';
i++;
break;
case 'b':
byte_u = '\b';
i++;
break;
case 'a':
byte_u = '\a';
i++;
break;
case 'f':
byte_u = '\f';
i++;
break;
case 'v':
byte_u = '\v';
i++;
break;
case '\\':
byte_u = '\\';
i++;
break;
}
}
if (echo) std::cout << byte_u;