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> |
| 7 | |
| 8 | namespace Common::Log { |
| 9 | |
| 10 | struct Entry; |
| 11 | |
| 12 | /// Formats a log entry into the provided text buffer. |
| 13 | std::string FormatLogMessage(const Entry& entry); |
| 14 | |
| 15 | /// Formats and prints a log entry to stderr. |
| 16 | void PrintMessage(const Entry& entry); |
| 17 | |
| 18 | /// Prints the same message as `PrintMessage`, but colored according to the severity level. |
| 19 | void PrintColoredMessage(const Entry& entry); |
| 20 | |
| 21 | } // namespace Common::Log |
| 22 |