if (val == '\\') // Line Break
if (line[i + 1] == 'n')
{
i++;
bw.Write(encryptU16('\n', ref key));
}
else if (line[i + 1] == 'r')
{
bw.Write(encryptU16(0x10, ref key)); i++;
bw.Write(encryptU16(1, ref key));
bw.Write(encryptU16(0xBE00, ref key));
}
else if (line[i + 1] == 'c')
{
bw.Write(encryptU16(0x10, ref key)); i++;
bw.Write(encryptU16(1, ref key));
bw.Write(encryptU16(0xBE01, ref key));
}
else { throw new Exception("Invalid terminated line"); }
You're likely using \ (forward slash) somewhere; not sure where this is happening.
If the game does naturally use the forward slash, I may have to just add the ability to write '\'.