mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-07-22 10:04:39 +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/io_file.h"
|
||||||
#include "common/logging/formatter.h"
|
#include "common/logging/formatter.h"
|
||||||
#include "core/devices/base_device.h"
|
#include "core/devices/base_device.h"
|
||||||
|
#include "core/libraries/network/sockets.h"
|
||||||
|
|
||||||
namespace Core::FileSys {
|
namespace Core::FileSys {
|
||||||
|
|
||||||
@ -77,6 +78,7 @@ enum class FileType {
|
|||||||
Regular, // standard file
|
Regular, // standard file
|
||||||
Directory,
|
Directory,
|
||||||
Device,
|
Device,
|
||||||
|
Socket,
|
||||||
};
|
};
|
||||||
|
|
||||||
struct File {
|
struct File {
|
||||||
@ -89,6 +91,7 @@ struct File {
|
|||||||
u32 dirents_index;
|
u32 dirents_index;
|
||||||
std::mutex m_mutex;
|
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
|
||||||
};
|
};
|
||||||
|
|
||||||
class HandleTable {
|
class HandleTable {
|
||||||
|
Loading…
Reference in New Issue
Block a user