mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-07-22 01:54:31 +00:00
Include socket field in the File struct
This commit is contained in:
parent
d992070638
commit
71d38669c2
@ -11,6 +11,7 @@
|
||||
#include "common/io_file.h"
|
||||
#include "common/logging/formatter.h"
|
||||
#include "core/devices/base_device.h"
|
||||
#include "core/libraries/network/sockets.h"
|
||||
|
||||
namespace Core::FileSys {
|
||||
|
||||
@ -77,6 +78,7 @@ enum class FileType {
|
||||
Regular, // standard file
|
||||
Directory,
|
||||
Device,
|
||||
Socket,
|
||||
};
|
||||
|
||||
struct File {
|
||||
@ -89,6 +91,7 @@ struct File {
|
||||
u32 dirents_index;
|
||||
std::mutex m_mutex;
|
||||
std::shared_ptr<Devices::BaseDevice> device; // only valid for type == Device
|
||||
std::shared_ptr<Libraries::Net::Socket> socket; // only valid for type == Socket
|
||||
};
|
||||
|
||||
class HandleTable {
|
||||
|
Loading…
Reference in New Issue
Block a user