2015-12-20 23:36:39 +00:00
|
|
|
// Copyright 2015 Dolphin Emulator Project
|
|
|
|
// Licensed under GPLv2+
|
|
|
|
// Refer to the license.txt file included.
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <QSettings>
|
|
|
|
|
2017-05-09 16:49:10 +00:00
|
|
|
#include "Core/HW/SI/SI.h"
|
|
|
|
|
2016-07-06 18:33:05 +00:00
|
|
|
namespace DiscIO
|
|
|
|
{
|
|
|
|
enum class Language;
|
|
|
|
}
|
2015-12-20 23:36:39 +00:00
|
|
|
|
2015-12-22 03:46:03 +00:00
|
|
|
// UI settings to be stored in the config directory.
|
2015-12-20 23:36:39 +00:00
|
|
|
class Settings final : public QSettings
|
|
|
|
{
|
2016-06-24 08:43:46 +00:00
|
|
|
Q_OBJECT
|
2015-12-20 23:36:39 +00:00
|
|
|
|
|
|
|
public:
|
2016-06-24 08:43:46 +00:00
|
|
|
explicit Settings(QObject* parent = nullptr);
|
|
|
|
|
|
|
|
// UI
|
|
|
|
QString GetThemeDir() const;
|
2017-05-09 16:49:10 +00:00
|
|
|
QString GetResourcesDir() const;
|
2016-07-13 05:52:45 +00:00
|
|
|
bool IsInDevelopmentWarningEnabled() const;
|
2016-06-24 08:43:46 +00:00
|
|
|
|
|
|
|
// GameList
|
|
|
|
QString GetLastGame() const;
|
|
|
|
void SetLastGame(const QString& path);
|
|
|
|
QStringList GetPaths() const;
|
|
|
|
void SetPaths(const QStringList& paths);
|
|
|
|
void RemovePath(int i);
|
|
|
|
QString GetDefaultGame() const;
|
|
|
|
void SetDefaultGame(const QString& path);
|
|
|
|
QString GetDVDRoot() const;
|
|
|
|
void SetDVDRoot(const QString& path);
|
|
|
|
QString GetApploader() const;
|
|
|
|
void SetApploader(const QString& path);
|
|
|
|
QString GetWiiNAND() const;
|
|
|
|
void SetWiiNAND(const QString& path);
|
2016-07-06 18:33:05 +00:00
|
|
|
DiscIO::Language GetWiiSystemLanguage() const;
|
|
|
|
DiscIO::Language GetGCSystemLanguage() const;
|
2016-06-24 08:43:46 +00:00
|
|
|
bool GetPreferredView() const;
|
|
|
|
void SetPreferredView(bool table);
|
|
|
|
|
|
|
|
// Emulation
|
|
|
|
bool GetConfirmStop() const;
|
2017-05-09 16:49:10 +00:00
|
|
|
bool IsWiiGameRunning() const;
|
2016-06-24 08:43:46 +00:00
|
|
|
int GetStateSlot() const;
|
|
|
|
void SetStateSlot(int);
|
|
|
|
|
|
|
|
// Graphics
|
|
|
|
bool GetRenderToMain() const;
|
|
|
|
bool GetFullScreen() const;
|
|
|
|
QSize GetRenderWindowSize() const;
|
2017-05-08 17:03:59 +00:00
|
|
|
|
|
|
|
// Columns
|
|
|
|
bool& BannerVisible() const;
|
|
|
|
bool& CountryVisible() const;
|
|
|
|
bool& DescriptionVisible() const;
|
|
|
|
bool& FilenameVisible() const;
|
|
|
|
bool& IDVisible() const;
|
|
|
|
bool& PlatformVisible() const;
|
|
|
|
bool& MakerVisible() const;
|
|
|
|
bool& SizeVisible() const;
|
|
|
|
bool& StateVisible() const;
|
|
|
|
bool& TitleVisible() const;
|
|
|
|
|
2017-05-09 16:49:10 +00:00
|
|
|
// Input
|
|
|
|
bool IsWiimoteSpeakerEnabled() const;
|
|
|
|
void SetWiimoteSpeakerEnabled(bool enabled);
|
|
|
|
|
|
|
|
bool IsBackgroundInputEnabled() const;
|
|
|
|
void SetBackgroundInputEnabled(bool enabled);
|
|
|
|
|
|
|
|
bool IsBluetoothPassthroughEnabled() const;
|
|
|
|
void SetBluetoothPassthroughEnabled(bool enabled);
|
|
|
|
|
|
|
|
SerialInterface::SIDevices GetSIDevice(size_t i) const;
|
|
|
|
void SetSIDevice(size_t i, SerialInterface::SIDevices device);
|
|
|
|
|
|
|
|
bool IsContinuousScanningEnabled() const;
|
|
|
|
void SetContinuousScanningEnabled(bool enabled);
|
|
|
|
|
2017-05-08 17:03:59 +00:00
|
|
|
void Save();
|
2015-12-20 23:36:39 +00:00
|
|
|
};
|