Import Strong Logger & Config System

This commit is contained in:
Xphalnos 2025-06-18 18:07:20 +02:00
parent 92d4e7a8d3
commit 014b236228
48 changed files with 3281 additions and 734 deletions

19
core/Base/Error.h Normal file
View file

@ -0,0 +1,19 @@
// Copyright 2025 Xenon Emulator Project. All rights reserved.
#pragma once
#include <string>
namespace Base {
// Like GetLastErrorMsg(), but passing an explicit error code.
// Defined in error.cpp.
[[nodiscard]] std::string NativeErrorToString(const s32 e);
// Generic function to get last error message.
// Call directly after the command or use the error num.
// This function might change the error code.
// Defined in error.cpp.
[[nodiscard]] std::string GetLastErrorMsg();
} // namespace Base