mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-04-27 07:48:01 -07:00
add debug settings; option to show cardIds (#5404)
* add debug settings; option to show cardIds * pass param by const ref * change group structure again * create debug.ini if not exists
This commit is contained in:
parent
62f60867a9
commit
f924b04efd
7 changed files with 50 additions and 2 deletions
17
cockatrice/src/settings/debug_settings.cpp
Normal file
17
cockatrice/src/settings/debug_settings.cpp
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
#include "debug_settings.h"
|
||||
|
||||
#include <QtCore/QFile>
|
||||
|
||||
DebugSettings::DebugSettings(const QString &settingPath, QObject *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()
|
||||
{
|
||||
return getValue("showCardId", "debug").toBool();
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue