Net: reconnect to the new core on GC_WARP
RecvWarpPacket now matches Windows: DirectEnter for the selected slot (warp flavour, SetNewLoadingPhase) and Connect(lAddr, wPort) through LoginClient::warp, discarding what is left on the old socket. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
ce6d457808
commit
189da4c269
@@ -216,6 +216,12 @@ public:
|
||||
using FlyCallback = std::function<void(uint8_t flyType, uint32_t startVID, uint32_t endVID)>;
|
||||
void SetFlyCallback(FlyCallback cb) { m_flyCallback = cb; }
|
||||
|
||||
// GC_WARP: the transport (LoginClient::warp) performs CNetworkStream::Connect(lAddr, wPort).
|
||||
bool TakeWarpRequest(uint32_t& address,uint16_t& port) {
|
||||
if(!m_warpRequested) return false;
|
||||
m_warpRequested=false;address=m_warpAddress;port=m_warpPort;return true;
|
||||
}
|
||||
|
||||
private:
|
||||
bool CheckPacket(uint8_t* retHeader);
|
||||
bool DispatchGamePhasePacket(uint8_t header,bool& ret);
|
||||
@@ -260,6 +266,9 @@ private:
|
||||
std::vector<bool> m_sendSequence;
|
||||
// Handshake/HandshakeOK/HybridCrypt return from GamePhase() before the refresh block.
|
||||
bool m_stopGamePhase=false;
|
||||
bool m_warpRequested=false;
|
||||
uint32_t m_warpAddress=0;
|
||||
uint16_t m_warpPort=0;
|
||||
uint32_t m_changeServerTime=0,m_changeClientTime=0; // CPythonNetworkStream::m_kServerTimeSync
|
||||
std::pair<int32_t,int32_t> m_dungeonDestination{};
|
||||
bool RecvItemSetPacket();
|
||||
|
||||
Reference in New Issue
Block a user