Avoid crashing the DS if an unsupported GT request is sent.

This commit is contained in:
Greg Edwards 2014-07-10 22:35:35 -04:00
parent a147e976bf
commit 28d22fd392
2 changed files with 2 additions and 2 deletions

View File

@ -58,7 +58,7 @@ namespace PkmnFoundations.GlobalTerminalService
MemoryStream response = new MemoryStream();
response.Write(new byte[] { 0x00, 0x00, 0x00, 0x00 }, 0, 4); // placeholder for length
response.WriteByte((byte)requestType);
response.WriteByte(Byte6(requestType));
response.WriteByte(data[5]);
try
{

View File

@ -57,7 +57,7 @@ namespace PkmnFoundations.GlobalTerminalService
MemoryStream response = new MemoryStream();
response.Write(new byte[] { 0x00, 0x00, 0x00, 0x00 }, 0, 4); // placeholder for length
response.WriteByte((byte)requestType);
response.WriteByte(Byte6(requestType));
response.WriteByte(data[5]);
try
{