Making get.asp return error 400 when there's no pokemon seems to fix a crash on the DS.

This commit is contained in:
Greg Edwards 2014-08-08 03:15:18 -04:00
parent 4d2ce62d4a
commit 29681e37ce
2 changed files with 8 additions and 0 deletions

View File

@ -179,6 +179,10 @@ namespace PkmnFoundations.GTS
{ 0x04, 0x00 }, 0, 2);
}
// other responses:
// 0-2 causes a BSOD but it flashes siezure. Scary
// 3 causes it to be "checking GTS's status" forever.
} break;
// Called after result.asp returns 4 when you check your pokemon's status
@ -195,6 +199,8 @@ namespace PkmnFoundations.GTS
{
// No pokemon in the system
// what do here?
Error400(context);
return;
}
else
{

View File

@ -195,6 +195,8 @@ namespace PkmnFoundations.GTS
{
// No pokemon in the system
// what do here?
Error400(context);
return;
}
else
{