Quickly threw together stub pkvldtprod implementation.

This commit is contained in:
Greg Edwards
2014-06-27 23:14:16 -04:00
parent 4215050474
commit fca5cae92d
4 changed files with 58 additions and 0 deletions

View File

@@ -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;
}
}

View File

@@ -67,6 +67,7 @@
<None Include="pad.bin">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<Content Include="pkvldtprod.ashx" />
<None Include="Web.config">
<SubType>Designer</SubType>
</None>
@@ -93,6 +94,9 @@
<Compile Include="BattleVideo.aspx.designer.cs">
<DependentUpon>BattleVideo.aspx</DependentUpon>
</Compile>
<Compile Include="pkvldtprod.ashx.cs">
<DependentUpon>pkvldtprod.ashx</DependentUpon>
</Compile>
<Compile Include="src\GamestatsSessionPlat.cs" />
<Compile Include="src\HeaderColour.cs" />
<Compile Include="test\AddDressup.aspx.cs">

1
gts/pkvldtprod.ashx Normal file
View File

@@ -0,0 +1 @@
<%@ WebHandler Language="C#" CodeBehind="pkvldtprod.ashx.cs" Class="PkmnFoundations.GTS.pkvldtprod" %>

48
gts/pkvldtprod.ashx.cs Normal file
View File

@@ -0,0 +1,48 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace PkmnFoundations.GTS
{
/// <summary>
/// Summary description for pkvldtprod
/// </summary>
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;
}
}
}
}