Include socket field in the File struct

This commit is contained in:
Marcin Mikołajczyk 2025-07-12 15:49:12 +01:00
parent d992070638
commit 71d38669c2

View File

@ -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 {