common, core: fix -Wmissing-field-initializers
This commit is contained in:
parent
1b36542be2
commit
7c3d241f0d
|
@ -121,11 +121,11 @@ public:
|
||||||
const u64 /*game_id*/, const std::string& /*game_name*/) override {}
|
const u64 /*game_id*/, const std::string& /*game_name*/) override {}
|
||||||
WebService::WebResult Update() override {
|
WebService::WebResult Update() override {
|
||||||
return WebService::WebResult{WebService::WebResult::Code::NoWebservice,
|
return WebService::WebResult{WebService::WebResult::Code::NoWebservice,
|
||||||
"WebService is missing"};
|
"WebService is missing", ""};
|
||||||
}
|
}
|
||||||
WebService::WebResult Register() override {
|
WebService::WebResult Register() override {
|
||||||
return WebService::WebResult{WebService::WebResult::Code::NoWebservice,
|
return WebService::WebResult{WebService::WebResult::Code::NoWebservice,
|
||||||
"WebService is missing"};
|
"WebService is missing", ""};
|
||||||
}
|
}
|
||||||
void ClearPlayers() override {}
|
void ClearPlayers() override {}
|
||||||
RoomList GetRoomList() override {
|
RoomList GetRoomList() override {
|
||||||
|
|
|
@ -34,10 +34,10 @@ WebService::WebResult AnnounceMultiplayerSession::Register() {
|
||||||
std::shared_ptr<Network::Room> room = Network::GetRoom().lock();
|
std::shared_ptr<Network::Room> room = Network::GetRoom().lock();
|
||||||
if (!room) {
|
if (!room) {
|
||||||
return WebService::WebResult{WebService::WebResult::Code::LibError,
|
return WebService::WebResult{WebService::WebResult::Code::LibError,
|
||||||
"Network is not initialized"};
|
"Network is not initialized", ""};
|
||||||
}
|
}
|
||||||
if (room->GetState() != Network::Room::State::Open) {
|
if (room->GetState() != Network::Room::State::Open) {
|
||||||
return WebService::WebResult{WebService::WebResult::Code::LibError, "Room is not open"};
|
return WebService::WebResult{WebService::WebResult::Code::LibError, "Room is not open", ""};
|
||||||
}
|
}
|
||||||
UpdateBackendData(room);
|
UpdateBackendData(room);
|
||||||
WebService::WebResult result = backend->Register();
|
WebService::WebResult result = backend->Register();
|
||||||
|
@ -47,7 +47,7 @@ WebService::WebResult AnnounceMultiplayerSession::Register() {
|
||||||
LOG_INFO(WebService, "Room has been registered");
|
LOG_INFO(WebService, "Room has been registered");
|
||||||
room->SetVerifyUID(result.returned_data);
|
room->SetVerifyUID(result.returned_data);
|
||||||
registered = true;
|
registered = true;
|
||||||
return WebService::WebResult{WebService::WebResult::Code::Success};
|
return WebService::WebResult{WebService::WebResult::Code::Success, "", ""};
|
||||||
}
|
}
|
||||||
|
|
||||||
void AnnounceMultiplayerSession::Start() {
|
void AnnounceMultiplayerSession::Start() {
|
||||||
|
|
Reference in New Issue