mirror of
https://github.com/mm201/pkmn-classic-framework.git
synced 2026-09-10 03:05:13 -05:00
Avoid crashing the DS if an unsupported GT request is sent.
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user