mirror of
https://github.com/citra-emu/citra.git
synced 2024-11-22 21:50:06 +00:00
23 lines
495 B
C++
23 lines
495 B
C++
// Copyright 2020 yuzu Emulator Project
|
|
// Licensed under GPLv2 or any later version
|
|
// Refer to the license.txt file included.
|
|
|
|
#pragma once
|
|
|
|
#include "common/common_types.h"
|
|
|
|
namespace Common {
|
|
|
|
struct MemoryInfo {
|
|
u64 total_physical_memory{};
|
|
u64 total_swap_memory{};
|
|
};
|
|
|
|
/**
|
|
* Gets the memory info of the host system
|
|
* @return Reference to a MemoryInfo struct with the physical and swap memory sizes in bytes
|
|
*/
|
|
[[nodiscard]] const MemoryInfo GetMemInfo();
|
|
|
|
} // namespace Common
|