mirror of https://github.com/AxioDL/logvisor.git
Only use lm service when LOGVISOR_NX_LM set
This commit is contained in:
parent
14ea54f8b5
commit
41432143fd
|
@ -12,6 +12,10 @@
|
||||||
#define FMT_ENFORCE_COMPILE_STRING 1
|
#define FMT_ENFORCE_COMPILE_STRING 1
|
||||||
#include <fmt/format.h>
|
#include <fmt/format.h>
|
||||||
|
|
||||||
|
#if defined(__SWITCH__) && !defined(LOGVISOR_NX_LM)
|
||||||
|
#define LOGVISOR_NX_LM 0
|
||||||
|
#endif
|
||||||
|
|
||||||
extern "C" void logvisorBp();
|
extern "C" void logvisorBp();
|
||||||
|
|
||||||
namespace logvisor {
|
namespace logvisor {
|
||||||
|
|
|
@ -31,7 +31,7 @@
|
||||||
#include <unordered_map>
|
#include <unordered_map>
|
||||||
#include <cstdio>
|
#include <cstdio>
|
||||||
#include <cinttypes>
|
#include <cinttypes>
|
||||||
#include <signal.h>
|
#include <csignal>
|
||||||
#include "logvisor/logvisor.hpp"
|
#include "logvisor/logvisor.hpp"
|
||||||
|
|
||||||
/* ANSI sequences */
|
/* ANSI sequences */
|
||||||
|
@ -169,6 +169,7 @@ void KillProcessTree() {
|
||||||
#elif defined(__SWITCH__)
|
#elif defined(__SWITCH__)
|
||||||
[[noreturn]] void logvisorAbort() {
|
[[noreturn]] void logvisorAbort() {
|
||||||
MainLoggers.clear();
|
MainLoggers.clear();
|
||||||
|
nvExit();
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
|
@ -294,7 +295,7 @@ static inline int ConsoleWidth() {
|
||||||
return retval;
|
return retval;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef __SWITCH__
|
#if LOGVISOR_NX_LM
|
||||||
|
|
||||||
struct ConsoleLogger : public ILogger {
|
struct ConsoleLogger : public ILogger {
|
||||||
Service m_svc{};
|
Service m_svc{};
|
||||||
|
|
Loading…
Reference in New Issue