summaryrefslogtreecommitdiffstats
path: root/src/core/hle
diff options
context:
space:
mode:
authorcomex <comexk@gmail.com>2023-07-02 02:28:43 +0200
committerLiam <byteslice@airmail.cc>2023-08-16 02:59:57 +0200
commit755bcc459bb9a5c7d521ea9046a8ac58c5256e73 (patch)
tree63a837fd55b77a8bb3c0b766c31a0d8ab0642d67 /src/core/hle
parentMerge pull request #11287 from liamwhite/replaced-bytes (diff)
downloadyuzu-755bcc459bb9a5c7d521ea9046a8ac58c5256e73.tar
yuzu-755bcc459bb9a5c7d521ea9046a8ac58c5256e73.tar.gz
yuzu-755bcc459bb9a5c7d521ea9046a8ac58c5256e73.tar.bz2
yuzu-755bcc459bb9a5c7d521ea9046a8ac58c5256e73.tar.lz
yuzu-755bcc459bb9a5c7d521ea9046a8ac58c5256e73.tar.xz
yuzu-755bcc459bb9a5c7d521ea9046a8ac58c5256e73.tar.zst
yuzu-755bcc459bb9a5c7d521ea9046a8ac58c5256e73.zip
Diffstat (limited to 'src/core/hle')
-rw-r--r--src/core/hle/service/sockets/sockets.h2
-rw-r--r--src/core/hle/service/sockets/sockets_translate.cpp4
2 files changed, 6 insertions, 0 deletions
diff --git a/src/core/hle/service/sockets/sockets.h b/src/core/hle/service/sockets/sockets.h
index 77426c46e..f86af01a4 100644
--- a/src/core/hle/service/sockets/sockets.h
+++ b/src/core/hle/service/sockets/sockets.h
@@ -18,7 +18,9 @@ enum class Errno : u32 {
AGAIN = 11,
INVAL = 22,
MFILE = 24,
+ PIPE = 32,
MSGSIZE = 90,
+ CONNABORTED = 103,
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 c1187209f..aed05250c 100644
--- a/src/core/hle/service/sockets/sockets_translate.cpp
+++ b/src/core/hle/service/sockets/sockets_translate.cpp
@@ -23,10 +23,14 @@ Errno Translate(Network::Errno value) {
return Errno::INVAL;
case Network::Errno::MFILE:
return Errno::MFILE;
+ case Network::Errno::PIPE:
+ return Errno::PIPE;
case Network::Errno::NOTCONN:
return Errno::NOTCONN;
case Network::Errno::TIMEDOUT:
return Errno::TIMEDOUT;
+ case Network::Errno::CONNABORTED:
+ return Errno::CONNABORTED;
case Network::Errno::CONNRESET:
return Errno::CONNRESET;
case Network::Errno::INPROGRESS: