mirror of
https://github.com/yuzu-emu/yuzu-mainline
synced 2024-11-23 04:03:39 +00:00
Merge pull request #688 from lioncash/comma
vm_manager: Add missing commas to string literal array elements in GetMemoryStateName()
This commit is contained in:
commit
90ce935f3d
1 changed files with 12 additions and 22 deletions
|
@ -16,30 +16,20 @@
|
||||||
namespace Kernel {
|
namespace Kernel {
|
||||||
|
|
||||||
static const char* GetMemoryStateName(MemoryState state) {
|
static const char* GetMemoryStateName(MemoryState state) {
|
||||||
static const char* names[] = {
|
static constexpr const char* names[] = {
|
||||||
"Unmapped",
|
"Unmapped", "Io",
|
||||||
"Io",
|
"Normal", "CodeStatic",
|
||||||
"Normal",
|
"CodeMutable", "Heap",
|
||||||
"CodeStatic",
|
"Shared", "Unknown1",
|
||||||
"CodeMutable",
|
"ModuleCodeStatic", "ModuleCodeMutable",
|
||||||
"Heap",
|
"IpcBuffer0", "Mapped",
|
||||||
"Shared",
|
"ThreadLocal", "TransferMemoryIsolated",
|
||||||
"Unknown1"
|
"TransferMemory", "ProcessMemory",
|
||||||
"ModuleCodeStatic",
|
"Unknown2", "IpcBuffer1",
|
||||||
"ModuleCodeMutable",
|
"IpcBuffer3", "KernelStack",
|
||||||
"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 {
|
bool VirtualMemoryArea::CanBeMergedWith(const VirtualMemoryArea& next) const {
|
||||||
|
|
Loading…
Reference in a new issue