diff options
author | FearlessTobi <thm.frey@gmail.com> | 2022-07-07 04:12:12 +0200 |
---|---|---|
committer | FearlessTobi <thm.frey@gmail.com> | 2022-07-25 21:59:30 +0200 |
commit | 7c3d241f0d03304df2c4d4449c2c8f1f9c7a16d3 (patch) | |
tree | 234478980fbc897d721f1488a89d3cb9b0edd119 /src | |
parent | yuzu: Hide multiplayer button and room status (diff) | |
download | yuzu-7c3d241f0d03304df2c4d4449c2c8f1f9c7a16d3.tar yuzu-7c3d241f0d03304df2c4d4449c2c8f1f9c7a16d3.tar.gz yuzu-7c3d241f0d03304df2c4d4449c2c8f1f9c7a16d3.tar.bz2 yuzu-7c3d241f0d03304df2c4d4449c2c8f1f9c7a16d3.tar.lz yuzu-7c3d241f0d03304df2c4d4449c2c8f1f9c7a16d3.tar.xz yuzu-7c3d241f0d03304df2c4d4449c2c8f1f9c7a16d3.tar.zst yuzu-7c3d241f0d03304df2c4d4449c2c8f1f9c7a16d3.zip |
Diffstat (limited to 'src')
-rw-r--r-- | src/common/announce_multiplayer_room.h | 4 | ||||
-rw-r--r-- | src/core/announce_multiplayer_session.cpp | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/src/common/announce_multiplayer_room.h b/src/common/announce_multiplayer_room.h index 5ca5893ef..8773ce4db 100644 --- a/src/common/announce_multiplayer_room.h +++ b/src/common/announce_multiplayer_room.h @@ -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 { diff --git a/src/core/announce_multiplayer_session.cpp b/src/core/announce_multiplayer_session.cpp index a680ad202..aeca87aac 100644 --- a/src/core/announce_multiplayer_session.cpp +++ b/src/core/announce_multiplayer_session.cpp @@ -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() { |