From 7a3e4637f4565966dd40e7399bb31282bb74eefc Mon Sep 17 00:00:00 2001 From: georgemoralis Date: Wed, 8 Nov 2023 12:10:21 +0200 Subject: [PATCH] small format fixes --- src/core/file_sys/fs.cpp | 2 +- src/core/hle/libraries/libkernel/file_system.h | 9 +++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/core/file_sys/fs.cpp b/src/core/file_sys/fs.cpp index 3e8271b7..6f73d456 100644 --- a/src/core/file_sys/fs.cpp +++ b/src/core/file_sys/fs.cpp @@ -4,7 +4,7 @@ namespace Core::FileSys { -constexpr int RESERVED_HANDLES = 3; //first 3 handles are stdin,stdout,stderr +constexpr int RESERVED_HANDLES = 3; // First 3 handles are stdin,stdout,stderr void MntPoints::mount(const std::string& host_folder, const std::string& guest_folder) { std::scoped_lock lock{m_mutex}; diff --git a/src/core/hle/libraries/libkernel/file_system.h b/src/core/hle/libraries/libkernel/file_system.h index 7064a275..ff11606a 100644 --- a/src/core/hle/libraries/libkernel/file_system.h +++ b/src/core/hle/libraries/libkernel/file_system.h @@ -7,13 +7,14 @@ class SymbolsResolver; } namespace Core::Libraries::LibKernel { + constexpr int SCE_MAX_PATH = 255; struct SceKernelDirent { - u32 d_fileno; /* file number of entry */ - u16 d_reclen; /* length of this record */ - u08 d_type; /* file type, see below */ - u08 d_namlen; /* length of string in d_name */ + u32 d_fileno; /* file number of entry */ + u16 d_reclen; /* length of this record */ + u08 d_type; /* file type, see below */ + u08 d_namlen; /* length of string in d_name */ char d_name[SCE_MAX_PATH + 1]; /* name must be no longer than this */ };