1
0
Fork 0
forked from suyu/suyu

yuzu_cmd: Fix compilation

This commit is contained in:
FearlessTobi 2022-07-23 19:28:19 +02:00
parent 7d82e57b91
commit 6b5667dfa5
2 changed files with 1 additions and 13 deletions

View file

@ -8,7 +8,6 @@
#include <memory>
#include <string>
#include <vector>
#include <boost/serialization/vector.hpp>
#include "common/announce_multiplayer_room.h"
#include "common/common_types.h"
#include "network/room.h"
@ -35,17 +34,6 @@ struct WifiPacket {
MacAddress transmitter_address; ///< Mac address of the transmitter.
MacAddress destination_address; ///< Mac address of the receiver.
u8 channel; ///< WiFi channel where this frame was transmitted.
private:
template <class Archive>
void serialize(Archive& ar, const unsigned int) {
ar& type;
ar& data;
ar& transmitter_address;
ar& destination_address;
ar& channel;
}
friend class boost::serialization::access;
};
/// Represents a chat message.

View file

@ -359,7 +359,7 @@ int main(int argc, char** argv) {
system.TelemetrySession().AddField(Common::Telemetry::FieldType::App, "Frontend", "SDL");
if (use_multiplayer) {
if (auto member = Network::GetRoomMember().lock()) {
if (auto member = system.GetRoomNetwork().GetRoomMember().lock()) {
member->BindOnChatMessageRecieved(OnMessageReceived);
member->BindOnStatusMessageReceived(OnStatusMessageReceived);
member->BindOnStateChanged(OnStateChanged);