Skip to content

Commit

Permalink
Fix MatchReport timing
Browse files Browse the repository at this point in the history
  • Loading branch information
inada-s committed Jul 15, 2023
1 parent ebc9bab commit 66136be
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion core/gdxsv/gdxsv.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ void Gdxsv::Reset() {
id[i] = lbs_msg.body[2 + i];
}
user_id_ = id;
lbs_net_.Send(GenerateP2PMatchReportPacket());
NotifyWanPort();
}

Expand Down Expand Up @@ -408,7 +409,6 @@ void Gdxsv::HandleRPC() {
if (lbs_net_.Connect(server_, port)) {
netmode_ = NetMode::Lbs;
lbs_net_.Send(GeneratePlatformInfoPacket());
lbs_net_.Send(GenerateP2PMatchReportPacket());
FetchPublicIP();
AddPortMapping();
} else {
Expand Down Expand Up @@ -687,6 +687,8 @@ void Gdxsv::WritePatch() {
if (disk_ == 2) WritePatchDisk2();
if (symbols_["patch_id"] == 0 || gdxsv_ReadMem32(symbols_["patch_id"]) != symbols_[":patch_id"]) {
NOTICE_LOG(COMMON, "patch %d %d", gdxsv_ReadMem32(symbols_["patch_id"]), symbols_[":patch_id"]);
bm_ResetCache();
bm_ResetTempCache(true);

#include "gdxsv_patch.inc"

Expand Down

0 comments on commit 66136be

Please sign in to comment.