mirror of
https://github.com/mm201/pkmn-classic-framework.git
synced 2026-04-25 08:04:27 -05:00
Added (dummied out) Platinum gamestats handler.
This commit is contained in:
parent
6bf139c267
commit
2bf281975c
|
|
@ -82,7 +82,12 @@ namespace PkmnFoundations.GTS
|
|||
String[] split = path.Split('/');
|
||||
if (split[0].Length > 0) return null;
|
||||
|
||||
if (split.Length > 1 && split[1] == "pokemondpds")
|
||||
if (split.Length > 2 && split[1] == "pokemondpds" && split[2] == "web")
|
||||
{
|
||||
pathInfo = "/" + String.Join("/", split, 3, split.Length - 3);
|
||||
return VirtualPathUtility.ToAbsolute("~/pokemonplatds.ashx");
|
||||
}
|
||||
else if (split.Length > 1 && split[1] == "pokemondpds")
|
||||
{
|
||||
pathInfo = "/" + String.Join("/", split, 2, split.Length - 2);
|
||||
return VirtualPathUtility.ToAbsolute("~/pokemondpds.ashx");
|
||||
|
|
|
|||
|
|
@ -3479,6 +3479,7 @@
|
|||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||
</None>
|
||||
<Content Include="pkvldtprod.ashx" />
|
||||
<Content Include="pokemondpds_web.ashx" />
|
||||
<None Include="Properties\PublishProfiles\Azure.pubxml" />
|
||||
<None Include="Properties\PublishProfiles\Local IIS.pubxml" />
|
||||
<Content Include="masters\ThreeColumn.master" />
|
||||
|
|
@ -3532,6 +3533,9 @@
|
|||
<Compile Include="pkvldtprod.ashx.cs">
|
||||
<DependentUpon>pkvldtprod.ashx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="pokemondpds_web.ashx.cs">
|
||||
<DependentUpon>pokemondpds_web.ashx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="RoomLeaders.aspx.cs">
|
||||
<DependentUpon>RoomLeaders.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
|
|
|
|||
1
gts/pokemondpds_web.ashx
Normal file
1
gts/pokemondpds_web.ashx
Normal file
|
|
@ -0,0 +1 @@
|
|||
<%@ WebHandler Language="C#" CodeBehind="pokemondpds_web.ashx.cs" Class="PkmnFoundations.GTS.pokemonplatds" %>
|
||||
37
gts/pokemondpds_web.ashx.cs
Normal file
37
gts/pokemondpds_web.ashx.cs
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using GamestatsBase;
|
||||
|
||||
namespace PkmnFoundations.GTS
|
||||
{
|
||||
/// <summary>
|
||||
/// Summary description for pokemondpds_web
|
||||
/// </summary>
|
||||
public class pokemondpds_web : GamestatsHandler
|
||||
{
|
||||
public pokemondpds_web()
|
||||
: base("uLMOGEiiJogofchScpXb000244fd00006015100000005b440e7epokemondpds",
|
||||
GamestatsRequestVersions.Version3, GamestatsResponseVersions.Version2, true)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void ProcessGamestatsRequest(byte[] request, MemoryStream response, string url, int pid, HttpContext context, GamestatsSession session)
|
||||
{
|
||||
switch (url)
|
||||
{
|
||||
default:
|
||||
SessionManager.Remove(session);
|
||||
|
||||
// unrecognized page url
|
||||
ShowError(context, 404);
|
||||
return;
|
||||
|
||||
// todo: Implement Wi-Fi Plaza gamestats handlers here.
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user