This commit is contained in:
CrazyBloo 2024-09-12 23:02:16 -04:00
parent d7564b2d5a
commit c1b73b170e
3 changed files with 5 additions and 5 deletions

View file

@ -3,8 +3,8 @@
#include <algorithm>
#include <codecvt>
#include <string>
#include <sstream>
#include <string>
#include <pugixml.hpp>
#ifdef ENABLE_QT_GUI
#include <QFile>
@ -23,7 +23,7 @@
namespace MemoryPatcher {
uintptr_t g_eboot_address;
u64 g_eboot_image_size;
uint64_t g_eboot_image_size;
std::string g_game_serial;
std::string patchFile;
std::vector<patchInfo> pending_patches;
@ -92,7 +92,7 @@ std::string convertValueToHex(const std::string type, const std::string valueStr
std::vector<unsigned char> byteArray;
// convert to little endian
for (char16_t ch : valueStringU16) {
unsigned char low_byte = static_cast<unsigned char>(ch & 0x00FF);
unsigned char low_byte = static_cast<unsigned char>(ch & 0x00FF);
unsigned char high_byte = static_cast<unsigned char>((ch >> 8) & 0x00FF);
byteArray.push_back(low_byte);

View file

@ -9,7 +9,7 @@
namespace MemoryPatcher {
extern uintptr_t g_eboot_address;
extern u64 g_eboot_image_size;
extern uint64_t g_eboot_image_size;
extern std::string g_game_serial;
extern std::string patchFile;

View file

@ -27,8 +27,8 @@
#include <QVBoxLayout>
#include <QXmlStreamReader>
#include <common/logging/log.h>
#include "common/memory_patcher.h"
#include "cheats_patches.h"
#include "common/memory_patcher.h"
#include "common/path_util.h"
#include "core/module.h"