mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-15 22:09:19 -07:00
a2d2acf741
Replace SConfig references with Settings()
97 lines
2.4 KiB
C++
97 lines
2.4 KiB
C++
// Copyright 2015 Dolphin Emulator Project
|
|
// Licensed under GPLv2+
|
|
// Refer to the license.txt file included.
|
|
|
|
#pragma once
|
|
|
|
#include <QSettings>
|
|
|
|
#include "Core/HW/SI/SI.h"
|
|
|
|
namespace DiscIO
|
|
{
|
|
enum class Language;
|
|
}
|
|
|
|
// UI settings to be stored in the config directory.
|
|
class Settings final : public QSettings
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit Settings(QObject* parent = nullptr);
|
|
|
|
// UI
|
|
QString GetThemeDir() const;
|
|
QString GetResourcesDir() const;
|
|
bool IsInDevelopmentWarningEnabled() const;
|
|
|
|
// 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);
|
|
DiscIO::Language GetWiiSystemLanguage() const;
|
|
DiscIO::Language GetGCSystemLanguage() const;
|
|
bool GetPreferredView() const;
|
|
void SetPreferredView(bool table);
|
|
|
|
// Emulation
|
|
bool GetConfirmStop() const;
|
|
bool IsWiiGameRunning() const;
|
|
int GetStateSlot() const;
|
|
void SetStateSlot(int);
|
|
float GetEmulationSpeed() const;
|
|
void SetEmulationSpeed(float val);
|
|
bool GetForceNTSCJ() const;
|
|
void SetForceNTSCJ(bool val);
|
|
|
|
// Analytics
|
|
bool GetAnalyticsEnabled() const;
|
|
void SetAnalyticsEnabled(bool val);
|
|
|
|
// Graphics
|
|
bool GetRenderToMain() const;
|
|
bool GetFullScreen() const;
|
|
QSize GetRenderWindowSize() const;
|
|
|
|
// 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;
|
|
|
|
// 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);
|
|
|
|
void Save();
|
|
};
|