From 470466b31b3ddc198482041e34e78095d467054f Mon Sep 17 00:00:00 2001
From: Zach Hilman <zachhilman@gmail.com>
Date: Thu, 30 May 2019 19:32:46 -0400
Subject: [PATCH] log: Add logging class for Cheat Engine

This is better than just using something like Common.Filesystem or Common.Memory
---
 src/common/logging/backend.cpp | 1 +
 src/common/logging/log.h       | 1 +
 2 files changed, 2 insertions(+)

diff --git a/src/common/logging/backend.cpp b/src/common/logging/backend.cpp
index a03179520d..1111cfbad2 100644
--- a/src/common/logging/backend.cpp
+++ b/src/common/logging/backend.cpp
@@ -255,6 +255,7 @@ void DebuggerBackend::Write(const Entry& entry) {
     CLS(Input)                                                                                     \
     CLS(Network)                                                                                   \
     CLS(Loader)                                                                                    \
+    CLS(CheatEngine)                                                                               \
     CLS(Crypto)                                                                                    \
     CLS(WebService)
 
diff --git a/src/common/logging/log.h b/src/common/logging/log.h
index 8ed6d50502..259708116d 100644
--- a/src/common/logging/log.h
+++ b/src/common/logging/log.h
@@ -117,6 +117,7 @@ enum class Class : ClassType {
     Audio_DSP,         ///< The HLE implementation of the DSP
     Audio_Sink,        ///< Emulator audio output backend
     Loader,            ///< ROM loader
+    CheatEngine,       ///< Memory manipulation and engine VM functions
     Crypto,            ///< Cryptographic engine/functions
     Input,             ///< Input emulation
     Network,           ///< Network emulation
-- 
GitLab