summaryrefslogtreecommitdiffstats
path: root/src/core/hle
diff options
context:
space:
mode:
authorliamwhite <liamwhite@users.noreply.github.com>2023-08-17 17:59:47 +0200
committerGitHub <noreply@github.com>2023-08-17 17:59:47 +0200
commitddedaa88753f649eb000cdbdbabfa55b4872ab27 (patch)
tree5c2f39dbc1dda51021c9688d64e12f8348bd66f0 /src/core/hle
parentcmake: mark warning disable for gcc 11 (#11301) (diff)
parentImprove behavior when sending to closed connection (diff)
downloadyuzu-ddedaa88753f649eb000cdbdbabfa55b4872ab27.tar
yuzu-ddedaa88753f649eb000cdbdbabfa55b4872ab27.tar.gz
yuzu-ddedaa88753f649eb000cdbdbabfa55b4872ab27.tar.bz2
yuzu-ddedaa88753f649eb000cdbdbabfa55b4872ab27.tar.lz
yuzu-ddedaa88753f649eb000cdbdbabfa55b4872ab27.tar.xz
yuzu-ddedaa88753f649eb000cdbdbabfa55b4872ab27.tar.zst
yuzu-ddedaa88753f649eb000cdbdbabfa55b4872ab27.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: