OSX: Handle zonebg for first time installations

If none of the gameboard images is set and and the user’s data
directory doesn’t contain a “zonebg” directory, create the directory,
copy contents from cockatrice’s app bundle and sets the config
accordingly.
This commit is contained in:
Fabio Bas 2014-06-22 23:21:29 +02:00
parent 55c4c464e4
commit 0b4701c42f
4 changed files with 52 additions and 1 deletions

View file

@ -89,6 +89,7 @@ public:
bool getIgnoreUnregisteredUsers() const { return ignoreUnregisteredUsers; }
QString getPicUrl() const { return picUrl; }
QString getPicUrlHq() const { return picUrlHq; }
void copyPath(const QString &src, const QString &dst);
public slots:
void setMainWindowGeometry(const QByteArray &_mainWindowGeometry);
void setLang(const QString &_lang);