登录修正,添加ICO

This commit is contained in:
Longfeng Qin 2024-09-12 09:37:33 +08:00
parent e4d927d271
commit 112b63a520
7 changed files with 14 additions and 9 deletions

View File

@ -217,6 +217,7 @@ namespace PSO2SERVER
LogPacket(true, typeA, typeB, flags1, flags2, packet); LogPacket(true, typeA, typeB, flags1, flags2, packet);
if (handler != null) if (handler != null)
handler.HandlePacket(this, flags1, packet, 0, size); handler.HandlePacket(this, flags1, packet, 0, size);
else else
{ {

View File

@ -97,16 +97,12 @@ namespace PSO2SERVER.Packets.Handlers
} }
} }
if(error != "") context.SendPacket(new LoginDataPacket("Server Block 1", error, (user == null) ? (uint)0 : (uint)user.PlayerId));
{
context.SendPacket(new LoginDataPacket("Server Block 1", error, (user == null) ? (uint)0 : (uint)user.PlayerId));
return;
}
// Mystery packet // Mystery packet
var mystery = new PacketWriter(); //var mystery = new PacketWriter();
mystery.Write((uint)100); //mystery.Write((uint)100);
context.SendPacket(0x11, 0x49, 0, mystery.ToArray()); //context.SendPacket(0x11, 0x49, 0, mystery.ToArray());
// Login response packet // Login response packet

View File

@ -51,6 +51,8 @@
<LangVersion>7.0</LangVersion> <LangVersion>7.0</LangVersion>
<ErrorReport>prompt</ErrorReport> <ErrorReport>prompt</ErrorReport>
<Prefer32Bit>false</Prefer32Bit> <Prefer32Bit>false</Prefer32Bit>
<DocumentationFile>
</DocumentationFile>
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|AnyCPU'"> <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|AnyCPU'">
<OutputPath>bin\Release\</OutputPath> <OutputPath>bin\Release\</OutputPath>
@ -62,6 +64,9 @@
<ErrorReport>prompt</ErrorReport> <ErrorReport>prompt</ErrorReport>
<Prefer32Bit>false</Prefer32Bit> <Prefer32Bit>false</Prefer32Bit>
</PropertyGroup> </PropertyGroup>
<PropertyGroup>
<ApplicationIcon>favicon.ico</ApplicationIcon>
</PropertyGroup>
<ItemGroup> <ItemGroup>
<Reference Include="BouncyCastle.Cryptography, Version=2.0.0.0, Culture=neutral, PublicKeyToken=072edcf4a5328938, processorArchitecture=MSIL"> <Reference Include="BouncyCastle.Cryptography, Version=2.0.0.0, Culture=neutral, PublicKeyToken=072edcf4a5328938, processorArchitecture=MSIL">
<HintPath>..\packages\BouncyCastle.Cryptography.2.4.0\lib\net461\BouncyCastle.Cryptography.dll</HintPath> <HintPath>..\packages\BouncyCastle.Cryptography.2.4.0\lib\net461\BouncyCastle.Cryptography.dll</HintPath>
@ -208,7 +213,9 @@
</ItemGroup> </ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" /> <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
<Import Project="..\packages\System.Data.SQLite.Core.1.0.94.0\build\net40\System.Data.SQLite.Core.targets" Condition="Exists('..\packages\System.Data.SQLite.Core.1.0.94.0\build\net40\System.Data.SQLite.Core.targets')" /> <Import Project="..\packages\System.Data.SQLite.Core.1.0.94.0\build\net40\System.Data.SQLite.Core.targets" Condition="Exists('..\packages\System.Data.SQLite.Core.1.0.94.0\build\net40\System.Data.SQLite.Core.targets')" />
<ItemGroup /> <ItemGroup>
<Content Include="favicon.ico" />
</ItemGroup>
<ProjectExtensions> <ProjectExtensions>
<MonoDevelop> <MonoDevelop>
<Properties> <Properties>

View File

@ -31,6 +31,7 @@
<bindingRedirect oldVersion="0.0.0.0-3.28.0.0" newVersion="3.28.0.0" /> <bindingRedirect oldVersion="0.0.0.0-3.28.0.0" newVersion="3.28.0.0" />
</dependentAssembly> </dependentAssembly>
</assemblyBinding> </assemblyBinding>
<probing privatePath="lib;plugins" />
</runtime> </runtime>
<entityFramework> <entityFramework>
<providers> <providers>

BIN
Server/favicon.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 MiB

BIN
素材/favicon.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 MiB

BIN
素材/ico.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 361 KiB