mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-12-01 10:13:43 +01:00
Removes another hacky behavior in sceNetInetGetErrno
This commit is contained in:
1 parent
016d66f866
commit
c901486791
1 file changed
-4
@@ -50,16 +50,12 @@ static int sceNetInetTerm() {
|
||||
}
|
||||
|
||||
static int sceNetInetGetErrno() {
|
||||
if (inetLastErrno == 0)
|
||||
inetLastErrno = socket_errno;
|
||||
int error = convertInetErrnoHost2PSP(inetLastErrno);
|
||||
// We should not reset inetLastErrno to 0 here. This breaks MOHH.
|
||||
return hleLogSuccessInfoI(Log::sceNet, error, "at %08x", currentMIPS->pc);
|
||||
}
|
||||
|
||||
static int sceNetInetGetPspError() {
|
||||
if (inetLastErrno == 0)
|
||||
inetLastErrno = socket_errno;
|
||||
int error = convertInetErrno2PSPError(convertInetErrnoHost2PSP(inetLastErrno));
|
||||
// We should not reset inetLastErrno to 0 here.
|
||||
return hleLogSuccessInfoI(Log::sceNet, error, "at %08x", currentMIPS->pc);
|
||||
|
||||
Reference in new issue
Block a user