mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-04-24 22:34:54 +00:00
Have UnsetPatch only unset the argument address
This commit is contained in:
parent
e10b3308c2
commit
2594447c25
1 changed files with 2 additions and 8 deletions
|
@ -50,14 +50,8 @@ void MemoryPatches::UnsetPatch(u32 address)
|
||||||
if (it == m_patches.end())
|
if (it == m_patches.end())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
const std::size_t size = m_patches.size();
|
const std::size_t index = std::distance(m_patches.begin(), it);
|
||||||
std::size_t index = size - std::distance(it, m_patches.end());
|
RemovePatch(index);
|
||||||
while (index < size)
|
|
||||||
{
|
|
||||||
DisablePatch(index);
|
|
||||||
++index;
|
|
||||||
}
|
|
||||||
m_patches.erase(it, m_patches.end());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void MemoryPatches::EnablePatch(std::size_t index)
|
void MemoryPatches::EnablePatch(std::size_t index)
|
||||||
|
|
Loading…
Add table
Reference in a new issue