2017-11-21 16:10:58 +00:00
|
|
|
#ifndef CONFIGURATION_H
|
|
|
|
#define CONFIGURATION_H
|
|
|
|
|
|
|
|
#include "preferences.h"
|
|
|
|
|
2019-11-24 19:30:34 +00:00
|
|
|
class GlobalOptions
|
|
|
|
{
|
|
|
|
public:
|
2019-12-01 18:40:28 +00:00
|
|
|
GlobalOptions(); // empty, uninitialised
|
|
|
|
|
|
|
|
static GlobalOptions fromQSettings();
|
2019-11-24 19:30:34 +00:00
|
|
|
|
|
|
|
QString screenshotTemplate;
|
|
|
|
QString gamepadName;
|
|
|
|
|
|
|
|
int slot0Card;
|
|
|
|
int ramWorksMemorySize;
|
|
|
|
int msGap;
|
|
|
|
int msFullSpeed;
|
|
|
|
|
|
|
|
int audioLatency;
|
|
|
|
int silenceDelay;
|
|
|
|
int volume;
|
2017-11-21 16:10:58 +00:00
|
|
|
|
2019-11-24 19:30:34 +00:00
|
|
|
void getData(Preferences::Data & data) const;
|
|
|
|
void setData(const Preferences::Data & data);
|
|
|
|
};
|
2019-04-20 20:51:19 +01:00
|
|
|
|
2019-11-24 19:30:34 +00:00
|
|
|
void getAppleWinPreferences(Preferences::Data & data);
|
|
|
|
void setAppleWinPreferences(const Preferences::Data & currentData, const Preferences::Data & newData);
|
2017-11-21 16:10:58 +00:00
|
|
|
|
|
|
|
#endif // CONFIGURATION_H
|