mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-28 21:26:07 +00:00
send gecko
This commit is contained in:
parent
44e5dcd7f8
commit
10a1e6c468
1 changed files with 9 additions and 1 deletions
|
@ -85,6 +85,7 @@
|
|||
#endif
|
||||
#include <arpa/inet.h>
|
||||
#endif
|
||||
#include "Core.h"
|
||||
|
||||
namespace NetPlay
|
||||
{
|
||||
|
@ -2111,7 +2112,7 @@ bool NetPlayServer::SyncCodes()
|
|||
{
|
||||
// Create a Gecko Code Vector with just the active codes
|
||||
std::vector<Gecko::GeckoCode> s_active_codes =
|
||||
Gecko::SetAndReturnActiveCodes(Gecko::LoadCodes(globalIni, localIni));
|
||||
Gecko::SetAndReturnActiveCodes(Gecko::LoadCodes(globalIni, localIni, game_id));
|
||||
|
||||
// Determine Codelist Size
|
||||
u16 codelines = 0;
|
||||
|
@ -2151,8 +2152,15 @@ bool NetPlayServer::SyncCodes()
|
|||
INFO_LOG_FMT(NETPLAY, "{:08x} {:08x}", code.address, code.data);
|
||||
pac << code.address;
|
||||
pac << code.data;
|
||||
v_ActiveGeckoCodes.push_back(active_code.name);
|
||||
}
|
||||
}
|
||||
sf::Packet packet;
|
||||
packet << MessageID::SendCodes;
|
||||
std::string codeStr = "";
|
||||
for (const std::string code : v_ActiveGeckoCodes)
|
||||
codeStr += "• " + code + "\n";
|
||||
packet << codeStr;
|
||||
SendAsyncToClients(std::move(pac));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue