diff options
author | Lioncash <mathew1800@gmail.com> | 2018-07-19 00:40:35 +0200 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2018-07-19 01:37:19 +0200 |
commit | 93cba6f6994e3410f8ef82bc53bb1448ee57aece (patch) | |
tree | 7d9ebe8daf8da9a1ec0316b43b26a84321eba7a1 /src/core/hle/kernel | |
parent | Merge pull request #681 from lioncash/const (diff) | |
download | yuzu-93cba6f6994e3410f8ef82bc53bb1448ee57aece.tar yuzu-93cba6f6994e3410f8ef82bc53bb1448ee57aece.tar.gz yuzu-93cba6f6994e3410f8ef82bc53bb1448ee57aece.tar.bz2 yuzu-93cba6f6994e3410f8ef82bc53bb1448ee57aece.tar.lz yuzu-93cba6f6994e3410f8ef82bc53bb1448ee57aece.tar.xz yuzu-93cba6f6994e3410f8ef82bc53bb1448ee57aece.tar.zst yuzu-93cba6f6994e3410f8ef82bc53bb1448ee57aece.zip |
Diffstat (limited to 'src/core/hle/kernel')
-rw-r--r-- | src/core/hle/kernel/vm_manager.cpp | 34 |
1 files changed, 12 insertions, 22 deletions
diff --git a/src/core/hle/kernel/vm_manager.cpp b/src/core/hle/kernel/vm_manager.cpp index 034dd490e..10b3ebaca 100644 --- a/src/core/hle/kernel/vm_manager.cpp +++ b/src/core/hle/kernel/vm_manager.cpp @@ -16,30 +16,20 @@ namespace Kernel { static const char* GetMemoryStateName(MemoryState state) { - static const char* names[] = { - "Unmapped", - "Io", - "Normal", - "CodeStatic", - "CodeMutable", - "Heap", - "Shared", - "Unknown1" - "ModuleCodeStatic", - "ModuleCodeMutable", - "IpcBuffer0", - "Mapped", - "ThreadLocal", - "TransferMemoryIsolated", - "TransferMemory", - "ProcessMemory", - "Unknown2" - "IpcBuffer1", - "IpcBuffer3", - "KernelStack", + static constexpr const char* names[] = { + "Unmapped", "Io", + "Normal", "CodeStatic", + "CodeMutable", "Heap", + "Shared", "Unknown1", + "ModuleCodeStatic", "ModuleCodeMutable", + "IpcBuffer0", "Mapped", + "ThreadLocal", "TransferMemoryIsolated", + "TransferMemory", "ProcessMemory", + "Unknown2", "IpcBuffer1", + "IpcBuffer3", "KernelStack", }; - return names[(int)state]; + return names[static_cast<int>(state)]; } bool VirtualMemoryArea::CanBeMergedWith(const VirtualMemoryArea& next) const { |