mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-05-02 14:58:03 +03:00

Not strictly necessary, but it reduces memory usage a little, and the next commit will make copying an Info object slower.
42 lines
1.1 KiB
C++
42 lines
1.1 KiB
C++
// Copyright 2017 Dolphin Emulator Project
|
|
// Licensed under GPLv2+
|
|
// Refer to the license.txt file included.
|
|
|
|
#pragma once
|
|
|
|
#include <array>
|
|
#include <variant>
|
|
|
|
#include "Common/Config/Config.h"
|
|
#include "Core/SysConf.h"
|
|
|
|
namespace Config
|
|
{
|
|
// Note: some settings are actually u8s, but stored as u32 in the layer because of limitations.
|
|
|
|
// SYSCONF.IPL
|
|
|
|
extern const Info<bool> SYSCONF_SCREENSAVER;
|
|
extern const Info<u32> SYSCONF_LANGUAGE;
|
|
extern const Info<u32> SYSCONF_COUNTRY;
|
|
extern const Info<bool> SYSCONF_WIDESCREEN;
|
|
extern const Info<bool> SYSCONF_PROGRESSIVE_SCAN;
|
|
extern const Info<bool> SYSCONF_PAL60;
|
|
extern const Info<u32> SYSCONF_SOUND_MODE;
|
|
|
|
// SYSCONF.BT
|
|
|
|
extern const Info<u32> SYSCONF_SENSOR_BAR_POSITION;
|
|
extern const Info<u32> SYSCONF_SENSOR_BAR_SENSITIVITY;
|
|
extern const Info<u32> SYSCONF_SPEAKER_VOLUME;
|
|
extern const Info<bool> SYSCONF_WIIMOTE_MOTOR;
|
|
|
|
struct SYSCONFSetting
|
|
{
|
|
std::variant<const Info<u32>*, const Info<bool>*> config_info;
|
|
SysConf::Entry::Type type;
|
|
};
|
|
|
|
extern const std::array<SYSCONFSetting, 11> SYSCONF_SETTINGS;
|
|
|
|
} // namespace Config
|