mirror of
https://github.com/mm201/pkmn-classic-framework.git
synced 2026-08-01 23:53:39 -05:00
Avoid crashing the DS if an unsupported GT request is sent.
This commit is contained in:
parent
a147e976bf
commit
28d22fd392
|
|
@ -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
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user