mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-05-04 07:48:05 +03:00
PatchEngine: Use std::span in ApplyMemoryPatches().
This commit is contained in:
parent
31bf9d0019
commit
993d2ab173
1 changed files with 2 additions and 1 deletions
|
@ -13,6 +13,7 @@
|
||||||
#include <map>
|
#include <map>
|
||||||
#include <mutex>
|
#include <mutex>
|
||||||
#include <optional>
|
#include <optional>
|
||||||
|
#include <span>
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
|
@ -262,7 +263,7 @@ static void ApplyPatches(const std::vector<Patch>& patches)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void ApplyMemoryPatches(const std::vector<std::size_t>& memory_patch_indices)
|
static void ApplyMemoryPatches(std::span<const std::size_t> memory_patch_indices)
|
||||||
{
|
{
|
||||||
std::lock_guard lock(s_on_frame_memory_mutex);
|
std::lock_guard lock(s_on_frame_memory_mutex);
|
||||||
for (std::size_t index : memory_patch_indices)
|
for (std::size_t index : memory_patch_indices)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue