This commit is contained in:
CrazyBloo 2024-08-23 02:45:52 -04:00
parent 90f1d2c08f
commit 0c1c3d7a83
3 changed files with 8 additions and 6 deletions

View File

@ -22,7 +22,8 @@ void ApplyPendingPatches() {
pending_patches.clear(); pending_patches.clear();
} }
void PatchMemory(std::string modNameStr, std::string offsetStr, std::string valueStr, bool isOffset) { void PatchMemory(std::string modNameStr, std::string offsetStr, std::string valueStr,
bool isOffset) {
// Send a request to modify the process memory. // Send a request to modify the process memory.
void* cheatAddress = nullptr; void* cheatAddress = nullptr;

View File

@ -19,6 +19,7 @@ extern std::vector<patchInfo> pending_patches;
void AddPatchToQueue(patchInfo patchToAdd); void AddPatchToQueue(patchInfo patchToAdd);
void ApplyPendingPatches(); void ApplyPendingPatches();
void PatchMemory(std::string modNameStr, std::string offsetStr, std::string valueStr, bool isOffset); void PatchMemory(std::string modNameStr, std::string offsetStr, std::string valueStr,
bool isOffset);
} // namespace MemoryPatcher } // namespace MemoryPatcher

View File

@ -26,9 +26,9 @@
#include <QXmlStreamReader> #include <QXmlStreamReader>
#include <common/logging/log.h> #include <common/logging/log.h>
#include "cheats_patches.h" #include "cheats_patches.h"
#include "common/memory_patcher.h"
#include "common/path_util.h" #include "common/path_util.h"
#include "core/module.h" #include "core/module.h"
#include "common/memory_patcher.h"
using namespace Common::FS; using namespace Common::FS;