summaryrefslogtreecommitdiffstats
path: root/src/core/hle
diff options
context:
space:
mode:
authorSubv <subv2112@gmail.com>2017-03-25 20:21:01 +0100
committerSubv <subv2112@gmail.com>2017-03-26 15:17:55 +0200
commitd7d5bf411a65c69e7bf9aa488567802fb2bd5ef2 (patch)
treec2d634cca0f7c66298befd96ea208d0888fb56a1 /src/core/hle
parentService/UDS: Schedule an event to broadcast the beacon frames every 102.4ms. (diff)
downloadyuzu-d7d5bf411a65c69e7bf9aa488567802fb2bd5ef2.tar
yuzu-d7d5bf411a65c69e7bf9aa488567802fb2bd5ef2.tar.gz
yuzu-d7d5bf411a65c69e7bf9aa488567802fb2bd5ef2.tar.bz2
yuzu-d7d5bf411a65c69e7bf9aa488567802fb2bd5ef2.tar.lz
yuzu-d7d5bf411a65c69e7bf9aa488567802fb2bd5ef2.tar.xz
yuzu-d7d5bf411a65c69e7bf9aa488567802fb2bd5ef2.tar.zst
yuzu-d7d5bf411a65c69e7bf9aa488567802fb2bd5ef2.zip
Diffstat (limited to 'src/core/hle')
-rw-r--r--src/core/hle/service/nwm/nwm_uds.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/hle/service/nwm/nwm_uds.cpp b/src/core/hle/service/nwm/nwm_uds.cpp
index da7c2bb0d..1d5b298a2 100644
--- a/src/core/hle/service/nwm/nwm_uds.cpp
+++ b/src/core/hle/service/nwm/nwm_uds.cpp
@@ -247,6 +247,9 @@ static void BeginHostingNetwork(Interface* self) {
Memory::ReadBlock(network_info_address, &network_info, sizeof(NetworkInfo));
+ // The real UDS module throws a fatal error if this assert fails.
+ ASSERT_MSG(network_info.max_nodes > 1, "Trying to host a network of only one member.");
+
connection_status.status = static_cast<u32>(NetworkStatus::ConnectedAsHost);
connection_status.max_nodes = network_info.max_nodes;