mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-22 22:00:39 -06:00
MemoryPatches: In-class initialize is_enabled state for MemoryPatch instances
Given this is what occurs in both constructors (as one just passes through to another), we can just initialize the member directly. While we're at it, amend the struct to follow the general ordering convention of: <new types> <functions> <variables>
This commit is contained in:
@ -20,12 +20,12 @@ struct MemoryPatch
|
||||
Disabled
|
||||
};
|
||||
|
||||
u32 address;
|
||||
std::vector<u8> value;
|
||||
State is_enabled;
|
||||
|
||||
MemoryPatch(u32 address, std::vector<u8> value);
|
||||
MemoryPatch(u32 address, u32 value);
|
||||
|
||||
u32 address;
|
||||
std::vector<u8> value;
|
||||
State is_enabled = State::Enabled;
|
||||
};
|
||||
|
||||
class MemoryPatches
|
||||
|
Reference in New Issue
Block a user