mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-19 00:42:14 -07:00
create debug.ini if not exists
This commit is contained in:
parent
4b1e377c98
commit
1faccd9007
1 changed files with 6 additions and 0 deletions
|
|
@ -1,8 +1,14 @@
|
||||||
#include "debug_settings.h"
|
#include "debug_settings.h"
|
||||||
|
|
||||||
|
#include <QtCore/QFile>
|
||||||
|
|
||||||
DebugSettings::DebugSettings(const QString &settingPath, QObject *parent)
|
DebugSettings::DebugSettings(const QString &settingPath, QObject *parent)
|
||||||
: SettingsManager(settingPath + "debug.ini", parent)
|
: SettingsManager(settingPath + "debug.ini", parent)
|
||||||
{
|
{
|
||||||
|
// force debug.ini to be created if it doesn't exist yet
|
||||||
|
if (!QFile(settingPath + "debug.ini").exists()) {
|
||||||
|
setValue(false, "showCardId", "debug");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
bool DebugSettings::getShowCardId()
|
bool DebugSettings::getShowCardId()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue