2V1-b/c: PythonNetworkStream phases, AccountConnector and the net module

Port PythonNetworkStream with its HandShake/Login/Select/Loading/Offline
phases, AccountConnector and PythonNetworkStreamModule verbatim; the net
stub goes. PythonBoot creates the network stream, account connector,
player, flying manager and effect manager like CPythonApplication, and
app.Create/Process drive CNetworkDevice and both connectors.

Packet.h long fields become 32-bit LONG; port.packet checks 38
login/select/loading packet sizes against wire_classic.h. Unported units
in the link closure live under platform/pending/ as stand-ins. The macOS
gate now builds all and finds iconv.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
shenlei
2026-09-23 15:02:14 +09:00
co-authored by Claude Opus 5.5
parent cd3b8b506f
commit 4d9b800efb
44 changed files with 8292 additions and 324 deletions
@@ -0,0 +1,163 @@
// Stand-in for the 40250 logic unit UserInterface/GuildMarkUploader.cpp, not ported yet: the platform_stub.py skeleton of its
// header, so the units that call it (批次 2V1, the network slice) link. Delete this file in the commit
// that ports the unit into port/ (docs/PORT-PLAN.md 2V1).
#include "UserInterface/StdAfx.h"
#include "UserInterface/GuildMarkUploader.h"
#include "../../PlatformStub.h"
CGuildMarkUploader::CGuildMarkUploader()
{
MT_PLATFORM_STUB();
}
CGuildMarkUploader::~CGuildMarkUploader()
{
MT_PLATFORM_STUB();
}
auto CGuildMarkUploader::Disconnect() -> void
{
MT_PLATFORM_STUB();
}
auto CGuildMarkUploader::Connect(const CNetworkAddress &, DWORD, DWORD, DWORD, const char *, UINT *) -> bool
{
MT_PLATFORM_STUB();
return mt_platform_stub_return<bool>();
}
auto CGuildMarkUploader::ConnectToSendSymbol(const CNetworkAddress &, DWORD, DWORD, DWORD, const char *, UINT *) -> bool
{
MT_PLATFORM_STUB();
return mt_platform_stub_return<bool>();
}
auto CGuildMarkUploader::IsCompleteUploading() -> bool
{
MT_PLATFORM_STUB();
return mt_platform_stub_return<bool>();
}
auto CGuildMarkUploader::Process() -> void
{
MT_PLATFORM_STUB();
}
auto CGuildMarkUploader::OnConnectFailure() -> void
{
MT_PLATFORM_STUB();
}
auto CGuildMarkUploader::OnConnectSuccess() -> void
{
MT_PLATFORM_STUB();
}
auto CGuildMarkUploader::OnRemoteDisconnect() -> void
{
MT_PLATFORM_STUB();
}
auto CGuildMarkUploader::OnDisconnect() -> void
{
MT_PLATFORM_STUB();
}
auto CGuildMarkUploader::__Load(const char *, UINT *) -> bool
{
MT_PLATFORM_STUB();
return mt_platform_stub_return<bool>();
}
auto CGuildMarkUploader::__LoadSymbol(const char *, UINT *) -> bool
{
MT_PLATFORM_STUB();
return mt_platform_stub_return<bool>();
}
auto CGuildMarkUploader::__Save(const char *) -> bool
{
MT_PLATFORM_STUB();
return mt_platform_stub_return<bool>();
}
auto CGuildMarkUploader::__Inialize() -> void
{
MT_PLATFORM_STUB();
}
auto CGuildMarkUploader::__StateProcess() -> bool
{
MT_PLATFORM_STUB();
return mt_platform_stub_return<bool>();
}
auto CGuildMarkUploader::__OfflineState_Set() -> void
{
MT_PLATFORM_STUB();
}
auto CGuildMarkUploader::__CompleteState_Set() -> void
{
MT_PLATFORM_STUB();
}
auto CGuildMarkUploader::__LoginState_Set() -> void
{
MT_PLATFORM_STUB();
}
auto CGuildMarkUploader::__LoginState_Process() -> bool
{
MT_PLATFORM_STUB();
return mt_platform_stub_return<bool>();
}
auto CGuildMarkUploader::__LoginState_RecvPhase() -> bool
{
MT_PLATFORM_STUB();
return mt_platform_stub_return<bool>();
}
auto CGuildMarkUploader::__LoginState_RecvHandshake() -> bool
{
MT_PLATFORM_STUB();
return mt_platform_stub_return<bool>();
}
auto CGuildMarkUploader::__LoginState_RecvPing() -> bool
{
MT_PLATFORM_STUB();
return mt_platform_stub_return<bool>();
}
auto CGuildMarkUploader::__LoginState_RecvKeyAgreement() -> bool
{
MT_PLATFORM_STUB();
return mt_platform_stub_return<bool>();
}
auto CGuildMarkUploader::__LoginState_RecvKeyAgreementCompleted() -> bool
{
MT_PLATFORM_STUB();
return mt_platform_stub_return<bool>();
}
auto CGuildMarkUploader::__AnalyzePacket(UINT, UINT, bool (CGuildMarkUploader::*)()) -> bool
{
MT_PLATFORM_STUB();
return mt_platform_stub_return<bool>();
}
auto CGuildMarkUploader::__SendMarkPacket() -> bool
{
MT_PLATFORM_STUB();
return mt_platform_stub_return<bool>();
}
auto CGuildMarkUploader::__SendSymbolPacket() -> bool
{
MT_PLATFORM_STUB();
return mt_platform_stub_return<bool>();
}