diff options
| author | MerryMage <MerryMage@users.noreply.github.com> | 2017-10-30 16:22:37 +0000 |
|---|---|---|
| committer | MerryMage <MerryMage@users.noreply.github.com> | 2017-11-15 18:04:40 +0000 |
| commit | ec7b84c5f2f68ce8aae35c2dc12854117414f72b (patch) | |
| tree | 18407861b3e0f12d761a67d66cb9527ac04a3230 /Source/Core/Common/Config/ConfigInfo.cpp | |
| parent | c8f970e2b04709280ef144ff135dac15945d21b2 (diff) | |
Config: Extract ConfigInfo into own header
Diffstat (limited to 'Source/Core/Common/Config/ConfigInfo.cpp')
| -rw-r--r-- | Source/Core/Common/Config/ConfigInfo.cpp | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/Source/Core/Common/Config/ConfigInfo.cpp b/Source/Core/Common/Config/ConfigInfo.cpp new file mode 100644 index 0000000000..cc34a2d9f0 --- /dev/null +++ b/Source/Core/Common/Config/ConfigInfo.cpp @@ -0,0 +1,25 @@ +// Copyright 2016 Dolphin Emulator Project +// Licensed under GPLv2+ +// Refer to the license.txt file included. + +#include <strings.h> + +#include "Common/Config/ConfigInfo.h" + +namespace Config +{ +bool ConfigLocation::operator==(const ConfigLocation& other) const +{ + return std::tie(system, section, key) == std::tie(other.system, other.section, other.key); +} + +bool ConfigLocation::operator!=(const ConfigLocation& other) const +{ + return !(*this == other); +} + +bool ConfigLocation::operator<(const ConfigLocation& other) const +{ + return std::tie(system, section, key) < std::tie(other.system, other.section, other.key); +} +} |
