summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-08-22 00:00:28 +0200
committerGitHub <noreply@github.com>2018-08-22 00:00:28 +0200
commitac68c8a60529fede551378fe03e527930b998c71 (patch)
tree645ea9745ee8f255dedd14166f7801bba4995f1d /src
parentMerge pull request #1146 from lioncash/am (diff)
parentvfs: Replace mode.h include with forward declarations where applicable (diff)
downloadyuzu-ac68c8a60529fede551378fe03e527930b998c71.tar
yuzu-ac68c8a60529fede551378fe03e527930b998c71.tar.gz
yuzu-ac68c8a60529fede551378fe03e527930b998c71.tar.bz2
yuzu-ac68c8a60529fede551378fe03e527930b998c71.tar.lz
yuzu-ac68c8a60529fede551378fe03e527930b998c71.tar.xz
yuzu-ac68c8a60529fede551378fe03e527930b998c71.tar.zst
yuzu-ac68c8a60529fede551378fe03e527930b998c71.zip
Diffstat (limited to 'src')
-rw-r--r--src/core/file_sys/vfs.cpp1
-rw-r--r--src/core/file_sys/vfs.h5
-rw-r--r--src/core/hle/service/filesystem/filesystem.cpp2
-rw-r--r--src/core/hle/service/filesystem/filesystem.h2
-rw-r--r--src/core/hle/service/filesystem/fsp_srv.cpp1
5 files changed, 7 insertions, 4 deletions
diff --git a/src/core/file_sys/vfs.cpp b/src/core/file_sys/vfs.cpp
index a5ec50b1a..b915b4c11 100644
--- a/src/core/file_sys/vfs.cpp
+++ b/src/core/file_sys/vfs.cpp
@@ -8,6 +8,7 @@
#include "common/common_paths.h"
#include "common/file_util.h"
#include "common/logging/backend.h"
+#include "core/file_sys/mode.h"
#include "core/file_sys/vfs.h"
namespace FileSys {
diff --git a/src/core/file_sys/vfs.h b/src/core/file_sys/vfs.h
index 78a63c59b..22db08b59 100644
--- a/src/core/file_sys/vfs.h
+++ b/src/core/file_sys/vfs.h
@@ -9,9 +9,8 @@
#include <string_view>
#include <type_traits>
#include <vector>
-#include "boost/optional.hpp"
+#include <boost/optional.hpp>
#include "common/common_types.h"
-#include "core/file_sys/mode.h"
namespace FileSys {
@@ -19,6 +18,8 @@ class VfsDirectory;
class VfsFile;
class VfsFilesystem;
+enum class Mode : u32;
+
// Convenience typedefs to use Vfs* interfaces
using VirtualFilesystem = std::shared_ptr<VfsFilesystem>;
using VirtualDir = std::shared_ptr<VfsDirectory>;
diff --git a/src/core/hle/service/filesystem/filesystem.cpp b/src/core/hle/service/filesystem/filesystem.cpp
index 0d2b1544f..6f9c64263 100644
--- a/src/core/hle/service/filesystem/filesystem.cpp
+++ b/src/core/hle/service/filesystem/filesystem.cpp
@@ -9,12 +9,12 @@
#include "core/core.h"
#include "core/file_sys/bis_factory.h"
#include "core/file_sys/errors.h"
+#include "core/file_sys/mode.h"
#include "core/file_sys/romfs_factory.h"
#include "core/file_sys/savedata_factory.h"
#include "core/file_sys/sdmc_factory.h"
#include "core/file_sys/vfs.h"
#include "core/file_sys/vfs_offset.h"
-#include "core/file_sys/vfs_real.h"
#include "core/hle/service/filesystem/filesystem.h"
#include "core/hle/service/filesystem/fsp_ldr.h"
#include "core/hle/service/filesystem/fsp_pr.h"
diff --git a/src/core/hle/service/filesystem/filesystem.h b/src/core/hle/service/filesystem/filesystem.h
index 572c16f4d..df78be44a 100644
--- a/src/core/hle/service/filesystem/filesystem.h
+++ b/src/core/hle/service/filesystem/filesystem.h
@@ -7,7 +7,6 @@
#include <memory>
#include "common/common_types.h"
#include "core/file_sys/directory.h"
-#include "core/file_sys/mode.h"
#include "core/hle/result.h"
namespace FileSys {
@@ -18,6 +17,7 @@ class SaveDataFactory;
class SDMCFactory;
enum class ContentRecordType : u8;
+enum class Mode : u32;
enum class SaveDataSpaceId : u8;
enum class StorageId : u8;
diff --git a/src/core/hle/service/filesystem/fsp_srv.cpp b/src/core/hle/service/filesystem/fsp_srv.cpp
index 8ece74d7e..5759299fe 100644
--- a/src/core/hle/service/filesystem/fsp_srv.cpp
+++ b/src/core/hle/service/filesystem/fsp_srv.cpp
@@ -15,6 +15,7 @@
#include "common/string_util.h"
#include "core/file_sys/directory.h"
#include "core/file_sys/errors.h"
+#include "core/file_sys/mode.h"
#include "core/file_sys/nca_metadata.h"
#include "core/file_sys/savedata_factory.h"
#include "core/file_sys/vfs.h"