diff --git a/gts/Global.asax.cs b/gts/Global.asax.cs index 5778e44e..f79ec842 100644 --- a/gts/Global.asax.cs +++ b/gts/Global.asax.cs @@ -90,6 +90,11 @@ namespace PkmnFoundations.GTS pathInfo = "/" + String.Join("/", split, 3, split.Length - 3); return VirtualPathUtility.ToAbsolute("~/syachi2ds.ashx"); } + else if (split.Length > 1 && split[1] == "pokemon" && split[2] == "validate") + { + pathInfo = "/pokemon/validate"; + return VirtualPathUtility.ToAbsolute("~/pkvldtprod.ashx"); + } else return null; } } diff --git a/gts/gts.csproj b/gts/gts.csproj index 5bd58a42..74db3ef4 100644 --- a/gts/gts.csproj +++ b/gts/gts.csproj @@ -67,6 +67,7 @@ Always + Designer @@ -93,6 +94,9 @@ BattleVideo.aspx + + pkvldtprod.ashx + diff --git a/gts/pkvldtprod.ashx b/gts/pkvldtprod.ashx new file mode 100644 index 00000000..d6903026 --- /dev/null +++ b/gts/pkvldtprod.ashx @@ -0,0 +1 @@ +<%@ WebHandler Language="C#" CodeBehind="pkvldtprod.ashx.cs" Class="PkmnFoundations.GTS.pkvldtprod" %> diff --git a/gts/pkvldtprod.ashx.cs b/gts/pkvldtprod.ashx.cs new file mode 100644 index 00000000..38855535 --- /dev/null +++ b/gts/pkvldtprod.ashx.cs @@ -0,0 +1,48 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; + +namespace PkmnFoundations.GTS +{ + /// + /// Summary description for pkvldtprod + /// + public class pkvldtprod : IHttpHandler + { + + public void ProcessRequest(HttpContext context) + { + // todo... + context.Response.ContentType = "text/plain"; + context.Response.OutputStream.Write(new byte[]{ + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}, 0, 149); + } + + public bool IsReusable + { + get + { + return true; + } + } + } +} \ No newline at end of file