yuzu-emu
/
yuzu-mainline
Archived
1
0
Fork 0

common, core: fix -Wmissing-field-initializers

This commit is contained in:
FearlessTobi 2022-07-07 04:12:12 +02:00
parent 1b36542be2
commit 7c3d241f0d
2 changed files with 5 additions and 5 deletions

View File

@ -121,11 +121,11 @@ public:
const u64 /*game_id*/, const std::string& /*game_name*/) override {}
WebService::WebResult Update() override {
return WebService::WebResult{WebService::WebResult::Code::NoWebservice,
"WebService is missing"};
"WebService is missing", ""};
}
WebService::WebResult Register() override {
return WebService::WebResult{WebService::WebResult::Code::NoWebservice,
"WebService is missing"};
"WebService is missing", ""};
}
void ClearPlayers() override {}
RoomList GetRoomList() override {

View File

@ -34,10 +34,10 @@ WebService::WebResult AnnounceMultiplayerSession::Register() {
std::shared_ptr<Network::Room> room = Network::GetRoom().lock();
if (!room) {
return WebService::WebResult{WebService::WebResult::Code::LibError,
"Network is not initialized"};
"Network is not initialized", ""};
}
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);
WebService::WebResult result = backend->Register();
@ -47,7 +47,7 @@ WebService::WebResult AnnounceMultiplayerSession::Register() {
LOG_INFO(WebService, "Room has been registered");
room->SetVerifyUID(result.returned_data);
registered = true;
return WebService::WebResult{WebService::WebResult::Code::Success};
return WebService::WebResult{WebService::WebResult::Code::Success, "", ""};
}
void AnnounceMultiplayerSession::Start() {