summaryrefslogtreecommitdiffstats
path: root/src/core/hle
diff options
context:
space:
mode:
authorliamwhite <liamwhite@users.noreply.github.com>2023-02-22 00:57:37 +0100
committerGitHub <noreply@github.com>2023-02-22 00:57:37 +0100
commit5a657488e14cb077f7c12392477f21c46957b18f (patch)
tree279680f92d67d4cdccfad7f0182b3046a9ef8caa /src/core/hle
parentMerge pull request #9834 from german77/reverted (diff)
parentnet: translate ECONNRESET network error (diff)
downloadyuzu-5a657488e14cb077f7c12392477f21c46957b18f.tar
yuzu-5a657488e14cb077f7c12392477f21c46957b18f.tar.gz
yuzu-5a657488e14cb077f7c12392477f21c46957b18f.tar.bz2
yuzu-5a657488e14cb077f7c12392477f21c46957b18f.tar.lz
yuzu-5a657488e14cb077f7c12392477f21c46957b18f.tar.xz
yuzu-5a657488e14cb077f7c12392477f21c46957b18f.tar.zst
yuzu-5a657488e14cb077f7c12392477f21c46957b18f.zip
Diffstat (limited to 'src/core/hle')
-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 31b7dad33..9840c11f9 100644
--- a/src/core/hle/service/sockets/sockets.h
+++ b/src/core/hle/service/sockets/sockets.h
@@ -23,6 +23,7 @@ enum class Errno : u32 {
INVAL = 22,
MFILE = 24,
MSGSIZE = 90,
+ CONNRESET = 104,
NOTCONN = 107,
TIMEDOUT = 110,
};
diff --git a/src/core/hle/service/sockets/sockets_translate.cpp b/src/core/hle/service/sockets/sockets_translate.cpp
index 023aa0486..594e58f90 100644
--- a/src/core/hle/service/sockets/sockets_translate.cpp
+++ b/src/core/hle/service/sockets/sockets_translate.cpp
@@ -27,6 +27,8 @@ Errno Translate(Network::Errno value) {
return Errno::NOTCONN;
case Network::Errno::TIMEDOUT:
return Errno::TIMEDOUT;
+ case Network::Errno::CONNRESET:
+ return Errno::CONNRESET;
default:
UNIMPLEMENTED_MSG("Unimplemented errno={}", value);
return Errno::SUCCESS;