summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorliamwhite <liamwhite@users.noreply.github.com>2024-01-30 17:58:55 +0100
committerGitHub <noreply@github.com>2024-01-30 17:58:55 +0100
commit07aa1a99fab6e16626af352714a88fedf769ecb0 (patch)
tree28180dcd7b01ea575e48f76dc389861a71a78ea1
parentMerge pull request #12847 from abouvier/cmake-oaknut (diff)
parentUpdate sockets.h (diff)
downloadyuzu-07aa1a99fab6e16626af352714a88fedf769ecb0.tar
yuzu-07aa1a99fab6e16626af352714a88fedf769ecb0.tar.gz
yuzu-07aa1a99fab6e16626af352714a88fedf769ecb0.tar.bz2
yuzu-07aa1a99fab6e16626af352714a88fedf769ecb0.tar.lz
yuzu-07aa1a99fab6e16626af352714a88fedf769ecb0.tar.xz
yuzu-07aa1a99fab6e16626af352714a88fedf769ecb0.tar.zst
yuzu-07aa1a99fab6e16626af352714a88fedf769ecb0.zip
-rw-r--r--src/core/hle/service/sockets/sockets.h1
-rw-r--r--src/core/hle/service/sockets/sockets_translate.cpp2
2 files changed, 3 insertions, 0 deletions
diff --git a/src/core/hle/service/sockets/sockets.h b/src/core/hle/service/sockets/sockets.h
index f86af01a4..f3ea31bde 100644
--- a/src/core/hle/service/sockets/sockets.h
+++ b/src/core/hle/service/sockets/sockets.h
@@ -24,6 +24,7 @@ enum class Errno : u32 {
CONNRESET = 104,
NOTCONN = 107,
TIMEDOUT = 110,
+ CONNREFUSED = 111,
INPROGRESS = 115,
};
diff --git a/src/core/hle/service/sockets/sockets_translate.cpp b/src/core/hle/service/sockets/sockets_translate.cpp
index aed05250c..21bb3e776 100644
--- a/src/core/hle/service/sockets/sockets_translate.cpp
+++ b/src/core/hle/service/sockets/sockets_translate.cpp
@@ -25,6 +25,8 @@ Errno Translate(Network::Errno value) {
return Errno::MFILE;
case Network::Errno::PIPE:
return Errno::PIPE;
+ case Network::Errno::CONNREFUSED:
+ return Errno::CONNREFUSED;
case Network::Errno::NOTCONN:
return Errno::NOTCONN;
case Network::Errno::TIMEDOUT: