mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-06 15:01:28 +12:00
Patches/LLVM: Implement Complex Patches Support
This commit is contained in:
parent
2d9929059f
commit
ddb042148d
3 changed files with 108 additions and 8 deletions
|
@ -26,6 +26,7 @@ enum class patch_type
|
|||
{
|
||||
invalid,
|
||||
load,
|
||||
alloc, // Allocate memory at address (zeroized executable memory)
|
||||
byte,
|
||||
le16,
|
||||
le32,
|
||||
|
@ -85,6 +86,15 @@ public:
|
|||
std::string version{};
|
||||
};
|
||||
|
||||
enum mem_protection : u8
|
||||
{
|
||||
wx = 0, // Read + Write + Execute (default)
|
||||
ro = 1, // Read
|
||||
rx = 2, // Read + Execute
|
||||
rw = 3, // Read + Write
|
||||
mask = 3,
|
||||
};
|
||||
|
||||
using patch_map = std::unordered_map<std::string /*hash*/, patch_container>;
|
||||
|
||||
patch_engine();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue