From 71d38669c22cfed9b4254ee32acc6a334049bac3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcin=20Miko=C5=82ajczyk?= Date: Sat, 12 Jul 2025 15:49:12 +0100 Subject: [PATCH] Include socket field in the File struct --- src/core/file_sys/fs.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/core/file_sys/fs.h b/src/core/file_sys/fs.h index 4a2aa56c1..19f2fa876 100644 --- a/src/core/file_sys/fs.h +++ b/src/core/file_sys/fs.h @@ -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 device; // only valid for type == Device + std::shared_ptr socket; // only valid for type == Socket }; class HandleTable {