mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-08-03 16:02:26 +00:00
format
This commit is contained in:
parent
d7564b2d5a
commit
c1b73b170e
@ -3,8 +3,8 @@
|
|||||||
|
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
#include <codecvt>
|
#include <codecvt>
|
||||||
#include <string>
|
|
||||||
#include <sstream>
|
#include <sstream>
|
||||||
|
#include <string>
|
||||||
#include <pugixml.hpp>
|
#include <pugixml.hpp>
|
||||||
#ifdef ENABLE_QT_GUI
|
#ifdef ENABLE_QT_GUI
|
||||||
#include <QFile>
|
#include <QFile>
|
||||||
@ -23,7 +23,7 @@
|
|||||||
namespace MemoryPatcher {
|
namespace MemoryPatcher {
|
||||||
|
|
||||||
uintptr_t g_eboot_address;
|
uintptr_t g_eboot_address;
|
||||||
u64 g_eboot_image_size;
|
uint64_t g_eboot_image_size;
|
||||||
std::string g_game_serial;
|
std::string g_game_serial;
|
||||||
std::string patchFile;
|
std::string patchFile;
|
||||||
std::vector<patchInfo> pending_patches;
|
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;
|
std::vector<unsigned char> byteArray;
|
||||||
// convert to little endian
|
// convert to little endian
|
||||||
for (char16_t ch : valueStringU16) {
|
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);
|
unsigned char high_byte = static_cast<unsigned char>((ch >> 8) & 0x00FF);
|
||||||
|
|
||||||
byteArray.push_back(low_byte);
|
byteArray.push_back(low_byte);
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
namespace MemoryPatcher {
|
namespace MemoryPatcher {
|
||||||
|
|
||||||
extern uintptr_t g_eboot_address;
|
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 g_game_serial;
|
||||||
extern std::string patchFile;
|
extern std::string patchFile;
|
||||||
|
|
||||||
|
@ -27,8 +27,8 @@
|
|||||||
#include <QVBoxLayout>
|
#include <QVBoxLayout>
|
||||||
#include <QXmlStreamReader>
|
#include <QXmlStreamReader>
|
||||||
#include <common/logging/log.h>
|
#include <common/logging/log.h>
|
||||||
#include "common/memory_patcher.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"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user