aboutsummaryrefslogtreecommitdiff
path: root/src/core/hle/service/filesystem/fsp_srv.h
diff options
context:
space:
mode:
authorMorph <39850852+Morph1984@users.noreply.github.com>2021-06-13 04:30:54 -0400
committerMorph <39850852+Morph1984@users.noreply.github.com>2021-06-16 00:06:02 -0400
commit0f48292de19227fcc61dd9ea71be321824368f9e (patch)
tree35a6d30abdc9435973116d145ff4db3a7ec22a54 /src/core/hle/service/filesystem/fsp_srv.h
parentf3caf536488861719976773449d5aada967a1849 (diff)
fsp_srv: Fix filesystem access logging
This introduces a new setting Enable FS Access Log which saves the filesystem access log to sdmc:/FsAccessLog.txt If this setting is not enabled, this will indicate to FS to not call OutputAccessLogToSdCard. Fixes softlocks during loading in Xenoblade Chronicles 2 when certain DLC is enabled.
Diffstat (limited to 'src/core/hle/service/filesystem/fsp_srv.h')
-rw-r--r--src/core/hle/service/filesystem/fsp_srv.h12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/core/hle/service/filesystem/fsp_srv.h b/src/core/hle/service/filesystem/fsp_srv.h
index ff7455a20..556708284 100644
--- a/src/core/hle/service/filesystem/fsp_srv.h
+++ b/src/core/hle/service/filesystem/fsp_srv.h
@@ -24,11 +24,10 @@ enum class AccessLogVersion : u32 {
Latest = V7_0_0,
};
-enum class LogMode : u32 {
- Off,
+enum class AccessLogMode : u32 {
+ None,
Log,
- RedirectToSdCard,
- LogToSdCard = Log | RedirectToSdCard,
+ SdCard,
};
class FSP_SRV final : public ServiceFramework<FSP_SRV> {
@@ -59,13 +58,12 @@ private:
FileSystemController& fsc;
const FileSys::ContentProvider& content_provider;
+ const Core::Reporter& reporter;
FileSys::VirtualFile romfs;
u64 current_process_id = 0;
u32 access_log_program_index = 0;
- LogMode log_mode = LogMode::LogToSdCard;
-
- const Core::Reporter& reporter;
+ AccessLogMode access_log_mode = AccessLogMode::None;
};
} // namespace Service::FileSystem