mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-07-22 10:04:39 +00:00
clang-format
This commit is contained in:
parent
4d0fa375ad
commit
31a708934c
@ -90,7 +90,7 @@ struct File {
|
||||
std::vector<DirEntry> dirents;
|
||||
u32 dirents_index;
|
||||
std::mutex m_mutex;
|
||||
std::shared_ptr<Devices::BaseDevice> device; // only valid for type == Device
|
||||
std::shared_ptr<Devices::BaseDevice> device; // only valid for type == Device
|
||||
std::shared_ptr<Libraries::Net::Socket> socket; // only valid for type == Socket
|
||||
};
|
||||
|
||||
|
@ -1694,19 +1694,15 @@ int PS4_SYSV_ABI sceNetResolverStartNtoa6() {
|
||||
}
|
||||
|
||||
int PS4_SYSV_ABI sceNetResolverStartNtoaMultipleRecords(OrbisNetId resolverid, const char* hostname,
|
||||
OrbisNetResolverInfo* info, int timeout, int retry, int flags) {
|
||||
OrbisNetResolverInfo* info, int timeout,
|
||||
int retry, int flags) {
|
||||
LOG_WARNING(Lib_Net, "redirected to sceNetResolverStartNtoa");
|
||||
|
||||
OrbisNetInAddr addr{};
|
||||
auto result = sceNetResolverStartNtoa(resolverid, hostname, &addr, timeout, retry, flags);
|
||||
|
||||
if (result == ORBIS_OK) {
|
||||
info->addrs[0] = {
|
||||
.u = {
|
||||
.addr = addr
|
||||
},
|
||||
.af = ORBIS_NET_AF_INET
|
||||
};
|
||||
info->addrs[0] = {.u = {.addr = addr}, .af = ORBIS_NET_AF_INET};
|
||||
info->records = 1;
|
||||
info->recordsv4 = 1;
|
||||
}
|
||||
|
@ -350,7 +350,8 @@ int PS4_SYSV_ABI sceNetResolverStartNtoa(OrbisNetId resolverid, const char* host
|
||||
OrbisNetInAddr* addr, int timeout, int retry, int flags);
|
||||
int PS4_SYSV_ABI sceNetResolverStartNtoa6();
|
||||
int PS4_SYSV_ABI sceNetResolverStartNtoaMultipleRecords(OrbisNetId resolverid, const char* hostname,
|
||||
OrbisNetResolverInfo* info, int timeout, int retry, int flags);
|
||||
OrbisNetResolverInfo* info, int timeout,
|
||||
int retry, int flags);
|
||||
int PS4_SYSV_ABI sceNetResolverStartNtoaMultipleRecordsEx();
|
||||
int PS4_SYSV_ABI sceNetSend(OrbisNetId s, const void* buf, u64 len, int flags);
|
||||
int PS4_SYSV_ABI sceNetSendmsg(OrbisNetId s, const OrbisNetMsghdr* msg, int flags);
|
||||
|
@ -4,9 +4,9 @@
|
||||
#include <common/assert.h>
|
||||
#include <common/logging/log.h>
|
||||
#include <core/libraries/kernel/kernel.h>
|
||||
#include "core/file_sys/fs.h"
|
||||
#include "common/error.h"
|
||||
#include "common/singleton.h"
|
||||
#include "core/file_sys/fs.h"
|
||||
#include "net_error.h"
|
||||
#include "sockets.h"
|
||||
#include "sys_net.h"
|
||||
|
Loading…
Reference in New Issue
Block a user