mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 14:19:46 -06:00
Merge pull request #7016 from lioncash/mem
MemoryPatches: Minor changes
This commit is contained in:
@ -6,11 +6,12 @@
|
|||||||
|
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
#include <sstream>
|
#include <sstream>
|
||||||
|
#include <utility>
|
||||||
|
|
||||||
namespace Common::Debug
|
namespace Common::Debug
|
||||||
{
|
{
|
||||||
MemoryPatch::MemoryPatch(u32 address_, std::vector<u8> value_)
|
MemoryPatch::MemoryPatch(u32 address_, std::vector<u8> value_)
|
||||||
: address(address_), value(value_), is_enabled(State::Enabled)
|
: address(address_), value(std::move(value_))
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -20,12 +20,12 @@ struct MemoryPatch
|
|||||||
Disabled
|
Disabled
|
||||||
};
|
};
|
||||||
|
|
||||||
u32 address;
|
|
||||||
std::vector<u8> value;
|
|
||||||
State is_enabled;
|
|
||||||
|
|
||||||
MemoryPatch(u32 address, std::vector<u8> value);
|
MemoryPatch(u32 address, std::vector<u8> value);
|
||||||
MemoryPatch(u32 address, u32 value);
|
MemoryPatch(u32 address, u32 value);
|
||||||
|
|
||||||
|
u32 address;
|
||||||
|
std::vector<u8> value;
|
||||||
|
State is_enabled = State::Enabled;
|
||||||
};
|
};
|
||||||
|
|
||||||
class MemoryPatches
|
class MemoryPatches
|
||||||
|
Reference in New Issue
Block a user