mirror of
				https://git.zaroz.cloud/nintendo-back-up/yuzu/yuzu-mainline.git
				synced 2025-03-21 01:53:15 +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
					
				@ -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 {
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user