diff options
| author | Admiral H. Curtiss <pikachu025@gmail.com> | 2023-01-09 17:24:41 +0100 |
|---|---|---|
| committer | Admiral H. Curtiss <pikachu025@gmail.com> | 2023-01-09 17:24:41 +0100 |
| commit | 993d2ab173f0e262465b4420e5746bb55a2c9ff1 (patch) | |
| tree | a5ae81dd892b563ff9ecf954756e8cda6e928aac /Source | |
| parent | 31bf9d0019618522dc73be1eec80caf11f5be43e (diff) | |
PatchEngine: Use std::span in ApplyMemoryPatches().
Diffstat (limited to 'Source')
| -rw-r--r-- | Source/Core/Core/PatchEngine.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/Core/Core/PatchEngine.cpp b/Source/Core/Core/PatchEngine.cpp index 67f2b4a3d9..a525e67261 100644 --- a/Source/Core/Core/PatchEngine.cpp +++ b/Source/Core/Core/PatchEngine.cpp @@ -13,6 +13,7 @@ #include <map> #include <mutex> #include <optional> +#include <span> #include <string> #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); for (std::size_t index : memory_patch_indices) |
