settings: implement KeyValueStore (#1659)

* settings: implement KeyValueStore and dependencies

* settings: update KeyValueStore for recent refactoring

* settings: address feedback
This commit is contained in:
Adubbz 2021-10-10 03:16:40 +11:00 committed by GitHub
parent 14c8801259
commit 303c6eb5f9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
23 changed files with 2767 additions and 81 deletions

View file

@ -0,0 +1,36 @@
/*
* Copyright (c) Atmosphère-NX
*
* This program is free software; you can redistribute it and/or modify it
* under the terms and conditions of the GNU General Public License,
* version 2, as published by the Free Software Foundation.
*
* This program is distributed in the hope it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
* more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#pragma once
#include <stratosphere.hpp>
namespace ams::settings::impl {
enum SplHardwareType : u8 {
SplHardwareType_None = 0x0,
SplHardwareType_Icosa = 0x1,
SplHardwareType_IcosaMariko = 0x2,
SplHardwareType_Copper = 0x3,
SplHardwareType_Hoag = 0x4,
SplHardwareType_Calcio = 0x5,
SplHardwareType_Aula = 0x6,
};
bool IsSplDevelopment();
SplHardwareType GetSplHardwareType();
bool IsSplRetailInteractiveDisplayStateEnabled();
u64 GetSplDeviceIdLow();
}