From 82669bf51ca4c4b71ec05915256045e2bc36c41e Mon Sep 17 00:00:00 2001 From: CrazyBloo Date: Sat, 24 Aug 2024 08:52:03 -0400 Subject: [PATCH] format --- src/common/memory_patcher.cpp | 2 +- src/emulator.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/memory_patcher.cpp b/src/common/memory_patcher.cpp index 694909236..73f4dafc1 100644 --- a/src/common/memory_patcher.cpp +++ b/src/common/memory_patcher.cpp @@ -47,7 +47,7 @@ void PatchMemory(std::string modNameStr, std::string offsetStr, std::string valu reinterpret_cast(g_eboot_address + (std::stoi(offsetStr, 0, 16) - 0x400000)); } } - + if (patchMask == PatchMask::Mask) { cheatAddress = reinterpret_cast(PatternScan(offsetStr) + maskOffset); } diff --git a/src/emulator.cpp b/src/emulator.cpp index 6bf82e0c4..17a6f4a2a 100644 --- a/src/emulator.cpp +++ b/src/emulator.cpp @@ -7,13 +7,13 @@ #include "common/debug.h" #include "common/logging/backend.h" #include "common/logging/log.h" +#include "common/memory_patcher.h" #include "common/ntapi.h" #include "common/path_util.h" #include "common/polyfill_thread.h" #include "common/scm_rev.h" #include "common/singleton.h" #include "common/version.h" -#include "common/memory_patcher.h" #include "core/file_format/playgo_chunk.h" #include "core/file_format/psf.h" #include "core/file_format/splash.h"