Skip to content

Commit

Permalink
Add header to sceNetInet and audit hleLogError calls for SetLastError.
Browse files Browse the repository at this point in the history
  • Loading branch information
JustAWhiteBloodCell committed Dec 27, 2023
1 parent a096367 commit e885c54
Show file tree
Hide file tree
Showing 6 changed files with 287 additions and 217 deletions.
22 changes: 0 additions & 22 deletions Core/HLE/sceNet.h
Original file line number Diff line number Diff line change
Expand Up @@ -176,28 +176,6 @@ enum {
#ifdef _MSC_VER
#pragma pack(push,1)
#endif
// Sockaddr
typedef struct SceNetInetSockaddr {
uint8_t sa_len;
uint8_t sa_family;
uint8_t sa_data[14];
} PACK SceNetInetSockaddr;

// Sockaddr_in
typedef struct SceNetInetSockaddrIn {
uint8_t sin_len;
uint8_t sin_family;
u16_le sin_port; //uint16_t
u32_le sin_addr; //uint32_t
uint8_t sin_zero[8];
} PACK SceNetInetSockaddrIn;

// Polling Event Field
typedef struct SceNetInetPollfd { //similar format to pollfd in 32bit (pollfd in 64bit have different size)
s32_le fd;
s16_le events;
s16_le revents;
} PACK SceNetInetPollfd;

typedef struct ProductStruct { // Similar to SceNetAdhocctlAdhocId ?
s32_le unknown; // Unknown, set to 0 // Product Type ?
Expand Down
Loading

0 comments on commit e885c54

Please sign in to comment.