mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-05-31 07:43:16 +00:00
QOL: Set Log Filter On Save (#991)
* set log filter on reset * clang format
This commit is contained in:
parent
079d90211f
commit
077f8981a7
3 changed files with 17 additions and 0 deletions
|
@ -144,6 +144,10 @@ public:
|
|||
initialization_in_progress_suppress_logging = false;
|
||||
}
|
||||
|
||||
static bool IsActive() {
|
||||
return instance != nullptr;
|
||||
}
|
||||
|
||||
static void Start() {
|
||||
instance->StartBackendThread();
|
||||
}
|
||||
|
@ -275,6 +279,10 @@ void Initialize(std::string_view log_file) {
|
|||
Impl::Initialize(log_file.empty() ? LOG_FILE : log_file);
|
||||
}
|
||||
|
||||
bool IsActive() {
|
||||
return Impl::IsActive();
|
||||
}
|
||||
|
||||
void Start() {
|
||||
Impl::Start();
|
||||
}
|
||||
|
|
|
@ -13,6 +13,8 @@ class Filter;
|
|||
/// Initializes the logging system. This should be the first thing called in main.
|
||||
void Initialize(std::string_view log_file = "");
|
||||
|
||||
bool IsActive();
|
||||
|
||||
/// Starts the logging threads.
|
||||
void Start();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue