Portable mode for windows (#2794)

* Portable mode for windows

* fix start menu in portable mode

* Make gcc an happy puppy

* Clean old installation if we are installing over an old portable mode installation

* Default to Desktop\CockatricePortable

* Settings dialog fixes

* wording
This commit is contained in:
ctrlaltca 2017-07-08 11:22:29 +02:00 committed by GitHub
parent 1565309146
commit 1366e5970e
13 changed files with 217 additions and 86 deletions

View file

@ -10,10 +10,12 @@ class SettingsCache : public QSettings {
Q_OBJECT
private:
QSettings *settings;
bool isPortableBuild;
public:
SettingsCache(const QString & fileName="servatrice.ini", QSettings::Format format=QSettings::IniFormat, QObject * parent = 0);
static QString guessConfigurationPath(QString & specificPath);
QList<QRegExp> disallowedRegExp;
bool getIsPortableBuild() const { return isPortableBuild; }
};
extern SettingsCache *settingsCache;