summaryrefslogtreecommitdiffstats
path: root/src/core/reporter.h
diff options
context:
space:
mode:
authorMorph <39850852+Morph1984@users.noreply.github.com>2021-06-16 20:03:01 +0200
committerGitHub <noreply@github.com>2021-06-16 20:03:01 +0200
commit92942fe01bf290d247e1a51562a07fe280448b47 (patch)
tree0868b1e5d5ae17a77dc18f678eb454b3e8f16c2b /src/core/reporter.h
parentMerge pull request #6462 from Morph1984/proper-flush (diff)
parentcommon: fs: file: Remove redundant call to WriteStringToFile (diff)
downloadyuzu-92942fe01bf290d247e1a51562a07fe280448b47.tar
yuzu-92942fe01bf290d247e1a51562a07fe280448b47.tar.gz
yuzu-92942fe01bf290d247e1a51562a07fe280448b47.tar.bz2
yuzu-92942fe01bf290d247e1a51562a07fe280448b47.tar.lz
yuzu-92942fe01bf290d247e1a51562a07fe280448b47.tar.xz
yuzu-92942fe01bf290d247e1a51562a07fe280448b47.tar.zst
yuzu-92942fe01bf290d247e1a51562a07fe280448b47.zip
Diffstat (limited to 'src/core/reporter.h')
-rw-r--r--src/core/reporter.h9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/core/reporter.h b/src/core/reporter.h
index 6fb6ebffa..6e9edeea3 100644
--- a/src/core/reporter.h
+++ b/src/core/reporter.h
@@ -16,10 +16,6 @@ namespace Kernel {
class HLERequestContext;
} // namespace Kernel
-namespace Service::FileSystem {
-enum class LogMode : u32;
-}
-
namespace Service::LM {
struct LogMessage;
} // namespace Service::LM
@@ -69,14 +65,15 @@ public:
std::optional<std::string> custom_text_main = {},
std::optional<std::string> custom_text_detail = {}) const;
- void SaveFilesystemAccessReport(Service::FileSystem::LogMode log_mode,
- std::string log_message) const;
+ void SaveFSAccessLog(std::string_view log_message) const;
// Can be used anywhere to generate a backtrace and general info report at any point during
// execution. Not intended to be used for anything other than debugging or testing.
void SaveUserReport() const;
private:
+ void ClearFSAccessLog() const;
+
bool IsReportingEnabled() const;
System& system;