Logging API change (refactor) (#19324)

* Rename LogType to Log

* Explicitly use the Log:: enum when logging. Allows for autocomplete when editing.

* Mac/ARM64 buildfix

* Do the same with the hle result log macros

* Rename the log names to mixed case while at it.

* iOS buildfix

* Qt buildfix attempt, ARM32 buildfix
This commit is contained in:
Henrik Rydgård authored and GitHub committed 2024-07-14 14:42:59 +02:00
1 parent ae3ff686f0
commit e01ca5b057
393 files changed
+6198 -6193

No files matched your search

+4 -4
View File
@@ -116,7 +116,7 @@ static void EmuThreadStop() {
static void EmuThreadJoin() {
emuThread.join();
INFO_LOG(SYSTEM, "EmuThreadJoin - joined");
INFO_LOG(Log::System, "EmuThreadJoin - joined");
}
bool CreateGraphicsBackend(std::string *error_message, GraphicsContext **ctx) {
@@ -240,7 +240,7 @@ void MainThreadFunc() {
std::string full_error = StringFromFormat("%.*s\n\n%s", (int)genericError.size(), genericError.data(), error_string.c_str());
std::wstring title = ConvertUTF8ToWString(err->T("GenericGraphicsError", "Graphics Error"));
bool yes = IDYES == MessageBox(0, ConvertUTF8ToWString(full_error).c_str(), title.c_str(), MB_ICONERROR | MB_YESNO);
ERROR_LOG(BOOT, "%s", full_error.c_str());
ERROR_LOG(Log::Boot, "%s", full_error.c_str());
if (yes) {
// Change the config to the alternative and restart.
@@ -268,10 +268,10 @@ void MainThreadFunc() {
NativeResized();
}
DEBUG_LOG(BOOT, "Done.");
DEBUG_LOG(Log::Boot, "Done.");
if (coreState == CORE_POWERDOWN) {
INFO_LOG(BOOT, "Exit before core loop.");
INFO_LOG(Log::Boot, "Exit before core loop.");
goto shutdown;
}