summaryrefslogtreecommitdiffstats
path: root/src/core/core.cpp
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2019-03-22 02:41:59 +0100
committerGitHub <noreply@github.com>2019-03-22 02:41:59 +0100
commit639f0c524d3406b7c156dc75af4e934c6b5adcb6 (patch)
treee03093771bbffc832c48670331cf9af54aa4a9fc /src/core/core.cpp
parentMerge pull request #2260 from lioncash/sdl (diff)
parentvm_manager: Remove cheat-specific ranges from VMManager (diff)
downloadyuzu-639f0c524d3406b7c156dc75af4e934c6b5adcb6.tar
yuzu-639f0c524d3406b7c156dc75af4e934c6b5adcb6.tar.gz
yuzu-639f0c524d3406b7c156dc75af4e934c6b5adcb6.tar.bz2
yuzu-639f0c524d3406b7c156dc75af4e934c6b5adcb6.tar.lz
yuzu-639f0c524d3406b7c156dc75af4e934c6b5adcb6.tar.xz
yuzu-639f0c524d3406b7c156dc75af4e934c6b5adcb6.tar.zst
yuzu-639f0c524d3406b7c156dc75af4e934c6b5adcb6.zip
Diffstat (limited to 'src/core/core.cpp')
-rw-r--r--src/core/core.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/core/core.cpp b/src/core/core.cpp
index 89b3fb418..a88e332be 100644
--- a/src/core/core.cpp
+++ b/src/core/core.cpp
@@ -32,6 +32,7 @@
#include "core/perf_stats.h"
#include "core/settings.h"
#include "core/telemetry_session.h"
+#include "file_sys/cheat_engine.h"
#include "frontend/applets/profile_select.h"
#include "frontend/applets/software_keyboard.h"
#include "frontend/applets/web_browser.h"
@@ -205,6 +206,7 @@ struct System::Impl {
GDBStub::Shutdown();
Service::Shutdown();
service_manager.reset();
+ cheat_engine.reset();
telemetry_session.reset();
gpu_core.reset();
@@ -255,6 +257,8 @@ struct System::Impl {
CpuCoreManager cpu_core_manager;
bool is_powered_on = false;
+ std::unique_ptr<FileSys::CheatEngine> cheat_engine;
+
/// Frontend applets
std::unique_ptr<Core::Frontend::ProfileSelectApplet> profile_selector;
std::unique_ptr<Core::Frontend::SoftwareKeyboardApplet> software_keyboard;
@@ -453,6 +457,13 @@ Tegra::DebugContext* System::GetGPUDebugContext() const {
return impl->debug_context.get();
}
+void System::RegisterCheatList(const std::vector<FileSys::CheatList>& list,
+ const std::string& build_id, VAddr code_region_start,
+ VAddr code_region_end) {
+ impl->cheat_engine =
+ std::make_unique<FileSys::CheatEngine>(list, build_id, code_region_start, code_region_end);
+}
+
void System::SetFilesystem(std::shared_ptr<FileSys::VfsFilesystem> vfs) {
impl->virtual_filesystem = std::move(vfs);
}