mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-27 04:36:18 +00:00
send ar codes
This commit is contained in:
parent
10a1e6c468
commit
2291ad1ddf
1 changed files with 7 additions and 0 deletions
|
@ -2209,8 +2209,15 @@ bool NetPlayServer::SyncCodes()
|
||||||
INFO_LOG_FMT(NETPLAY, "{:08x} {:08x}", op.cmd_addr, op.value);
|
INFO_LOG_FMT(NETPLAY, "{:08x} {:08x}", op.cmd_addr, op.value);
|
||||||
pac << op.cmd_addr;
|
pac << op.cmd_addr;
|
||||||
pac << op.value;
|
pac << op.value;
|
||||||
|
v_ActiveARCodes.push_back(active_code.name);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
sf::Packet packet;
|
||||||
|
packet << MessageID::SendCodes;
|
||||||
|
std::string codeStr = "";
|
||||||
|
for (const std::string code : v_ActiveARCodes)
|
||||||
|
codeStr += "• " + code + "\n";
|
||||||
|
packet << codeStr;
|
||||||
SendAsyncToClients(std::move(pac));
|
SendAsyncToClients(std::move(pac));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue