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>
|
|
|
|
|
|
|
|
#include "DiscIO/Volume.h"
|
|
|
|
|
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
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
2015-12-22 03:46:03 +00:00
|
|
|
explicit Settings(QObject* parent = nullptr);
|
2015-12-20 23:36:39 +00:00
|
|
|
|
|
|
|
// UI
|
|
|
|
QString GetThemeDir() const;
|
|
|
|
|
|
|
|
// GameList
|
|
|
|
QString GetLastGame() const;
|
2015-12-22 03:46:03 +00:00
|
|
|
void SetLastGame(const QString& path);
|
2015-12-20 23:36:39 +00:00
|
|
|
QStringList GetPaths() const;
|
2015-12-22 03:46:03 +00:00
|
|
|
void SetPaths(const QStringList& paths);
|
2015-12-31 03:03:13 +00:00
|
|
|
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);
|
2015-12-20 23:36:39 +00:00
|
|
|
DiscIO::IVolume::ELanguage GetWiiSystemLanguage() const;
|
|
|
|
DiscIO::IVolume::ELanguage GetGCSystemLanguage() const;
|
2016-01-01 10:29:39 +00:00
|
|
|
bool GetPreferredView() const;
|
|
|
|
void SetPreferredView(bool table);
|
2015-12-20 23:36:39 +00:00
|
|
|
|
|
|
|
// Emulation
|
|
|
|
bool GetConfirmStop() const;
|
|
|
|
|
|
|
|
// Graphics
|
|
|
|
bool GetRenderToMain() const;
|
|
|
|
bool GetFullScreen() const;
|
|
|
|
QSize GetRenderWindowSize() const;
|
|
|
|
};
|