From 29681e37ceb7a10e228b2ac60fb8bcd5d08d4e5c Mon Sep 17 00:00:00 2001 From: Greg Edwards Date: Fri, 8 Aug 2014 03:15:18 -0400 Subject: [PATCH] Making get.asp return error 400 when there's no pokemon seems to fix a crash on the DS. --- gts/pokemondpds.ashx.cs | 6 ++++++ gts/syachi2ds.ashx.cs | 2 ++ 2 files changed, 8 insertions(+) diff --git a/gts/pokemondpds.ashx.cs b/gts/pokemondpds.ashx.cs index d954fd02..5685e94f 100644 --- a/gts/pokemondpds.ashx.cs +++ b/gts/pokemondpds.ashx.cs @@ -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 { diff --git a/gts/syachi2ds.ashx.cs b/gts/syachi2ds.ashx.cs index c1410be2..0881ad69 100644 --- a/gts/syachi2ds.ashx.cs +++ b/gts/syachi2ds.ashx.cs @@ -195,6 +195,8 @@ namespace PkmnFoundations.GTS { // No pokemon in the system // what do here? + Error400(context); + return; } else {