A tool for deriving PKG packet encryption keys for ps4 written in c++
| 1 | // SPDX-FileCopyrightText: Copyright 2014 Citra Emulator Project |
| 2 | // SPDX-License-Identifier: GPL-2.0-or-later |
| 3 | |
| 4 | #pragma once |
| 5 | |
| 6 | #include <string_view> |
| 7 | #include "common/logging/filter.h" |
| 8 | |
| 9 | namespace Common::Log { |
| 10 | |
| 11 | class Filter; |
| 12 | |
| 13 | /// Initializes the logging system. This should be the first thing called in main. |
| 14 | void Initialize(std::string_view log_file = ""); |
| 15 | |
| 16 | bool IsActive(); |
| 17 | |
| 18 | /// Starts the logging threads. |
| 19 | void Start(); |
| 20 | |
| 21 | /// Explictily stops the logger thread and flushes the buffers |
| 22 | void Stop(); |
| 23 | |
| 24 | /// The global filter will prevent any messages from even being processed if they are filtered. |
| 25 | void SetGlobalFilter(const Filter& filter); |
| 26 | |
| 27 | void SetColorConsoleBackendEnabled(bool enabled); |
| 28 | |
| 29 | } // namespace Common::Log |
| 30 |