mirror of
https://github.com/yuzu-emu/yuzu-android.git
synced 2024-11-22 17:15:42 +01:00
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 {}
|
||||
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 {
|
||||
|
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user