diff options
Diffstat (limited to 'Source/Core/Common/MemArenaWin.cpp')
| -rw-r--r-- | Source/Core/Common/MemArenaWin.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Source/Core/Common/MemArenaWin.cpp b/Source/Core/Common/MemArenaWin.cpp index b055477a85..9d4a88d54a 100644 --- a/Source/Core/Common/MemArenaWin.cpp +++ b/Source/Core/Common/MemArenaWin.cpp @@ -8,6 +8,8 @@ #include <cstdlib> #include <string> +#include <fmt/format.h> + #include <windows.h> #include "Common/Assert.h" @@ -107,9 +109,9 @@ static DWORD GetLowDWORD(u64 value) return static_cast<DWORD>(value); } -void MemArena::GrabSHMSegment(size_t size) +void MemArena::GrabSHMSegment(size_t size, std::string_view base_name) { - const std::string name = "dolphin-emu." + std::to_string(GetCurrentProcessId()); + const std::string name = fmt::format("{}.{}", base_name, GetCurrentProcessId()); m_memory_handle = CreateFileMapping(INVALID_HANDLE_VALUE, nullptr, PAGE_READWRITE, GetHighDWORD(size), GetLowDWORD(size), UTF8ToTStr(name).c_str()); |
